Click or drag to resize
DigitalRuneLayoutSerializerOnCreateInstance Method (Type, XmlReader)
Called when a game instance needs to be created.

Namespace: DigitalRune.Game.UI
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
protected virtual Object OnCreateInstance(
	Type type,
	XmlReader reader
)

Parameters

type
Type: SystemType
The type of the object.
reader
Type: System.XmlXmlReader
The XML reader positioned on the node with data for the instance.

Return Value

Type: Object
A new instance of the type.
Remarks
Per default, the parameterless constructor of type is invoked. This method can be overridden in derived classes to support types that do not have a parameterless default constructor or that require a special initialization.
See Also