c# - Having DataContractSerializer serialize the same class in two different ways? -
I am using DataContractSerializer to serialize an object properties and fields marked with DataMember attributes for XML.
Now there is another use case for the same class, where I need to sort the other properties and other areas.
Is there a way to add "Another DataMemberAttribute" to my second serialization scenario?
Comments
Post a Comment