I have a class that is marked with DataContract attributes and I would like to create an XDocument
from objects of that class. Whats the best way of doing this?
I can do it by going via an XmlDocument
but this seems like an unnecessary step.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…