I inherited some classes with a large number of attributes. I want to be able to serialize them for WCF
.
As DataContractSerializer
is an opt-in serializer, I will need to decorate all the properties with DataMember
attribute, which seems to me a little cumbersome. Don't I have any other way around so that I don't have to add DataMember
to all the properties?
Please note, most of my properties need to be serialized.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…