|
Hi, I am using the BinaryFormatter to serialize a class, and I need to serialize this class in two different ways; in one case I want to store all fields of the class, which is straightforward. But in the second case, I want to serialize only a few selected fields, and I therefore need a way to specify overrides to the Serialize attribute. I haven't used BinaryFormatter alot, but in XML serialization one can use the XMLAttributeOverrides class to easily modify attributes to specific needs. Is there an equivalent for this in BinaryFormatter? |