IDataObjectGetObjectT Method |
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 T GetObject<T>(
string type
)
Function GetObject(Of T) (
type As String
) As T
abstract GetObject :
type : string -> 'T
Parameters
- type
- Type: SystemString
Type identifier to get from the data object
Type Parameters
- T
- Type of the object to get
Return Value
Type:
TAn instance of the object to recieve, or the default value.
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