| LayoutSerializerOnCreateInstance Method (Type, XmlReader) |
Called when a game instance needs to be created.
Namespace: DigitalRune.Game.UIAssembly: 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
)
Protected Overridable Function OnCreateInstance (
type As Type,
reader As XmlReader
) As Object
protected:
virtual Object^ OnCreateInstance(
Type^ type,
XmlReader^ reader
)
abstract OnCreateInstance :
type : Type *
reader : XmlReader -> Object
override OnCreateInstance :
type : Type *
reader : XmlReader -> Object
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:
ObjectA 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