Selective serialization with NetDataContractSerializer
- by mafutrct
Serializing this class works fine. However, sometimes I'd like to exclude the field. Is this possible?
[DataContract]
class Foo
{
[DataMember]
Foo _Foo;
}
Setting the field to null temporarily is impossible.