Is there a way to set the JsonProperty attribute when we don't have access to the inherited class?
public abstract class NotModifiable {
public Guid Id { get; protected set; }
}
public class Modifiable : NotModifiable {
[JsonProperty("name")]
public string Name {get; set;}
}
Basically if there is another way to achieve the same behaviour as:
[JsonProperty("id")]
public Guid Id { get; protected set; }
Without accessing it.
Thanks