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; }
    }
原文地址:https://www.cnblogs.com/hllive/p/11063881.html