ChildId
objects on the Parent
are in fact ChildDetail
objects. When I use JSON.net to serialize the Parent
, they are written out with all of the ChildDetail
properties.Parent
object.ContractResolver
I came up with:targetType
's descendants, without affecting the properties of its base classes or of other types that targetType
's properties might reference. Which, depending on your needs, may or may not be an improvement over the other answers provided here at the time.