mtelligent on 05/04/09
Last Edited at 05/04/09 09:39am
public string SerializeToString<T>(T obj){ StringWriter sw = new StringWriter(); XmlSerializer serializer = new XmlSerializer(typeof(T)); serializer.Serialize(sw, obj); return sw.ToString();}
Report this snippet Tweet
Comment:
You need to login to post a comment.