c# - XmlSerializer Complex Attributes -


i have xmlserializer , class layer member called scale of type vector2 in it. want vector2 serialized point in xaml, attribute. want produce this:

 <layer scale="1.0,1.5" /> 

instead of this:

<layer>      <scale>           <x>1.0</x>           <y>1.5</y>      </scale> </layer> 

is possible?


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -