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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -