Selective serialization with NetDataContractSerializer
Posted
by mafutrct
on Stack Overflow
See other posts from Stack Overflow
or by mafutrct
Published on 2010-04-01T23:45:40Z
Indexed on
2010/04/01
23:53 UTC
Read the original article
Hit count: 492
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.
© Stack Overflow or respective owner