ToolboxXmlSerializeT Method (T, Type) |
http://www.emgu.com
Convert an object to an xml document
Namespace: Emgu.UtilAssembly: Emgu.Util (in Emgu.Util.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic static XDocument XmlSerialize<T>(
T sourceObject,
Type[] knownTypes
)
Public Shared Function XmlSerialize(Of T) (
sourceObject As T,
knownTypes As Type()
) As XDocument
public:
generic<typename T>
static XDocument^ XmlSerialize(
T sourceObject,
array<Type^>^ knownTypes
)
static member XmlSerialize :
sourceObject : 'T *
knownTypes : Type[] -> XDocument
Parameters
- sourceObject
- Type: T
The object to be serialized - knownTypes
- Type: SystemType
Other types that it must known ahead to serialize the object
Type Parameters
- T
- The type of the object to be converted
Return Value
Type:
XDocumentAn xml document that represents the object
See Also