我试图弄清楚为什么Newtonsoft.json的JsonProperty字段具有名为 order 的属性,以及为什么首先序列化哪个属性无关紧要?
[JsonProperty(Order = 1)]
public bool Deleted { get; set; }
[JsonProperty(Order = 2)]
public DateTime DeletedDate { get; set; }
public DateTime CreatedDate { get; set; }
public DateTime UpdatedDate { get; set; }
// appear first
[JsonProperty(Order = -2)]
public string FullName { get; set; }