ToolboxXmlDeserializeT Method (XDocument, Type) |
http://www.emgu.com
Convert an xml document to an object
Namespace:
Emgu.Util
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.3.0.2824 (3.3.0.2824)
Syntaxpublic static T XmlDeserialize<T>(
XDocument xDoc,
Type[] knownTypes
)
Public Shared Function XmlDeserialize(Of T) (
xDoc As XDocument,
knownTypes As Type()
) As T
public:
generic<typename T>
static T XmlDeserialize(
XDocument^ xDoc,
array<Type^>^ knownTypes
)
static member XmlDeserialize :
xDoc : XDocument *
knownTypes : Type[] -> 'T
Parameters
- xDoc
- Type: System.Xml.LinqXDocument
The xml document - knownTypes
- Type: SystemType
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:
TThe object representation as a result of the deserialization of the xml document
See Also