c# - how to seriliaze object with numeric element name -
public class uname { [xmlelement("0.23")] public string name1{get;set;} }
when serialize above object generated below
<uname><_x0030_.23>value</_x0030_.23></uname>
i need below provided attribute number:
<uname><0.23>value</0.23></uname>
what want not valid xml. element names must start letter or underscore.
Comments
Post a Comment