Serializes the obj.
| C# | Visual Basic | Visual C++ |
public static string ToXml<T>( T obj )
Public Shared Function ToXml(Of T) ( _ obj As T _ ) As String
public: generic<typename T> static String^ ToXml( T obj )
- T
- The type.
- obj (T)
- The object to serialize.
A UTF8 XML string representing obj.