With a model such as ..
class Base {
public Child Child { get; set; }
}
class Child {
public int Id { get; set; }
// other properties
}
I want to do Xml Serialization, but for the Child
object on Base
, I only want to serialize the Id
property. The rest of the Child
object will be serialized into its own separate file. Is this possible to do without making two sets of models?