Deserialize the object representation in targetNode

Namespace: yWorks.yFiles.GraphML.Parser
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
T Deserialize<T>( IParseContext context, XObject targetNode )
Visual Basic
Function Deserialize(Of T) ( _ context As IParseContext, _ targetNode As XObject _ ) As T

Parameters

context
Type: yWorks.yFiles.GraphML.Parser..::..IParseContext
The current parse context.
targetNode
Type: System.Xml.Linq..::..XObject
The XML node that should be deserialized.

Type Parameters

T
The expected return type.

Return Value

The deserialized object from targetNode or an DeserializationNotSupportedException if targetNode could not be deserialized.

Remarks

Client code should usually use the extension method Deserialize<(Of <<'(T>)>>)(IParseContext, XObject) instead to ensure the the correct context instance is used.

See Also