Convert an object to an xml document

C# | Visual Basic | Visual C++ |
public static XmlDocument XmlSerialize<T>( T o )
Public Shared Function XmlSerialize(Of T) ( _ o As T _ ) As XmlDocument
public: generic<typename T> static XmlDocument^ XmlSerialize( T o )

- T
- The type of the object to be converted

- o (T)
- The object to be serialized

An xml document that represents the object