Public Function TOXML(ByVal o As Comments) As String Dim x As New XmlDocument Dim xs As New Xml.Serialization.XmlSerializer(o.GetType) Dim ms As New IO.MemoryStream xs.Serialize(ms, o) ms.Position = 0 x.Load(ms) Return x.InnerXml End Function End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)