public static string Serialize<T>(T dataToSerialize) { using (StringWriter stringwriter = new System.IO.StringWriter()) { var serializer = new XmlSerializer(typeof(T)); serializer.Serialize(stringwriter, dataToSerialize); return stringwriter.ToString(); } } public static T Deserialize<T>(string xmlText) { using (StringReader stringReader = new System.IO.StringReader(xmlText)) { var serializer = new XmlSe...
Blog for sharing my programming experience and share my codes