I have a class that contains several properties. This class is serialized to an XML file.
The properties are: TestA, TestB, TestC, TestD.
Can I make some code that allows me to:
Serialize TestA and TestB to the XML file if condition X is met and serialize TestC and TestD to the XML file if condition Y is met?
Right now, all properties are serialized to the XML file and that's not what I want.
Thanks in advance!
View Complete Post