Click or drag to resize

DataObjectGetObjectT Method (String)

Gets an object from the data object with the specified type

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public T GetObject<T>(
	string type
)

Parameters

type
Type: SystemString
Type identifier to get from the data object

Type Parameters

T
Type of the object to get

Return Value

Type: T
An instance of the object to recieve, or the default value.

Implements

IDataObjectGetObjectT(String)
Remarks
This is useful when you know the type of object, and it is serializable or has a type converter to convert from string. If it cannot be converted it will return the default value.
See Also