I have a class
public class Event{
[JsonProperty("event_type")] public string EventType { get; private set; }
}
when I deserialize it with
Event event = JsonConvert.DeserializeObject<Event>("{'event_type':'started'}"
Field EventType is feed with value "started". But I don't expect this cause it is a "get;private set" menber, which should not be deserialized but can be serialized as I expect.
How can I achieve this?