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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -