Set accessor not being called when I deserialise object from Json.net
问题 public class SpecialObject { public string ID; [JsonIgnore] public List<SpecialObject> SpecialObjectCollection = new List<SpecialObject>(); [JsonIgnore] public List<string> tempObjectIDs = new List<string>(); [JsonProperty] public List<string> SpecialObjectIDs { get { return SpecialObjectCollection.Select(x => x.ID).ToList(); } set { tempObjectIDs = value; } } public SpecialObject() { } public SpecialObject(string _id) { ID = _id; } } static void Main(string[] args) { SpecialObject parent =