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

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

Syntax

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

Parameters

xDoc
Type: System.Xml.Linq..::..XDocument
The xml document
knownTypes
Type: array<System..::..Type>[]()[][]
Other types that it must known ahead to deserialize the object

Type Parameters

T
The type of the object to be converted to

Return Value

Type: T
The object representation as a result of the deserialization of the xml document

See Also