PropertyStoreCreateT Method (Object, FuncT) |
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,
Func<T> create
)
Public Function Create(Of T) (
key As Object,
create As Func(Of T)
) As T
member Create :
key : Object *
create : Func<'T> -> 'T
Parameters
- key
- Type: SystemObject
Key of the property to get - create
- Type: SystemFuncT
Delegate to create the object, if it doesn't already exist
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