I’d like to know if it is possible to deserialize a char from xml into a c# object.
So I’d like to deserialize :
<MyChar>a<MyChar>
into:
[XmlElement]
public char MyChar { get; set; }
I was hoping to use [XmlElement(DataType = “char”)] but char is not a supported type
As you said , it not be supported.
But you can implement by this way …