Click or drag to resize

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
)

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: T
Value of the property with the given key, or a new instance if not already added
See Also