I have a domain model component with several entity classes. In another component i have entity repositories implemented using Json.NET serialization. I want to ignore some
The Json serializer also supports opt-in serialization
[JsonObject(MemberSerialization.OptIn)]
public class File
{
// excluded from serialization
// does not have JsonPropertyAttribute
public Guid Id { get; set; }
[JsonProperty]
public string Name { get; set; }
[JsonProperty]
public int Size { get; set; }
}