http://www.emgu.com
Convert an object to an xml document

Namespace: Emgu.Util
Assembly: Emgu.Util (in Emgu.Util.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static XDocument XmlSerialize<T>(
	T sourceObject,
	Type[] knownTypes
)
Visual Basic
Public Shared Function XmlSerialize(Of T) ( 
	sourceObject As T,
	knownTypes As Type()
) As XDocument
Visual C++
public:
generic<typename T>
static XDocument^ XmlSerialize(
	T sourceObject, 
	array<Type^>^ knownTypes
)
F#
static member XmlSerialize : 
        sourceObject : 'T * 
        knownTypes : Type[] -> XDocument 

Parameters

sourceObject
Type: T
The object to be serialized
knownTypes
Type: array<System..::..Type>[]()[][]
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: XDocument
An xml document that represents the object

See Also