I have a custom type which i want to serialize, this custom type accepts input which might consists
- by starz26
I have a custom type which i want to serialize, this custom type accepts input which might consists of escape chars.
M1_Serilizer(MyCustomType customTypeObj)
{XmlSerializer serializer = new XmlSerializer(typeof(MyCustomType));
StringWriter sw = new StringWriter(CultureInfo.InvariantCulture);
serializer.Serialize(sw, customTypeObj);
string str=…