C# Newtonsoft.Json不序列字段

    [JsonObject(MemberSerialization.OptOut)]
    public class employeePersonalForm {
        [JsonIgnore]
        public string eid { get; set; }
        public int? sex { get; set; }
        public string name { get; set; }
        public int? zzmm { get; set; }
        public int? nation { get; set; }
        public int? degreeid { get; set; }
    }

 

posted @ 2019-06-21 12:14  hllive  阅读(1025)  评论(0编辑  收藏  举报