PropertyStoreCreateT Method (Object) |
Gets a value from the property store with the specified key of a concrete type, and creates a new instance if it doesn't exist yet.
Namespace:
Eto
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public T Create<T>(
Object key
)
where T : new()
Public Function Create(Of T As New) (
key As Object
) As T
member Create :
key : Object -> 'T when 'T : new()
Parameters
- key
- Type: SystemObject
Key of the property to get
Type Parameters
- T
- Type type of property to get.
Return Value
Type:
TValue of the property with the given key, or a new instance if not already added
See Also