public class ObjectToSerialize { clsStudent objStudent = new clsStudent(); public static string SerializeAnObject(object AnObject) { XmlSerializer ser = new XmlSerializer(AnObject.GetType()); TextWriter Writer = new StringWriter(); ser.Serialize(Writer, AnObject); return Writer.ToString(); }
We can develop dll either in vb or atl for asp application. Now in dot net we can use it by interop services.
Namespace : using System.Runtime.InteropServices;You can go through lot of examples available on com reusibility in dot net.