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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -