c# - Is it possible to make [XmlAttribute] as default for a class? -
i have lot of properties serialize using xmlserializer
. need tag each (simple) property [xmlattribute]
make output little shorter. i'm wondering if there easier way it. there way make default class, simple type properties serialized attribute instead of element?
you can create code snippets.
create 1 properties attribute set, , use when writing them.
Comments
Post a Comment