Click or drag to resize
ExtendObjectTypeWithStaticPropertyPropertyType Method (String, FuncPropertyType, ActionPropertyType)
Extends the type with a new generic static property

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 11.0.0
Syntax
C#
public static GenericProperty<PropertyType> WithStaticProperty<PropertyType>(
	string propertyName,
	Func<PropertyType> getter,
	Action<PropertyType> setter = null
)

Parameters

propertyName
Type: SystemString
Property name
getter
Type: SystemFuncPropertyType
Getter function
setter (Optional)
Type: SystemActionPropertyType
Setter function

Type Parameters

PropertyType

Return Value

Type: GenericPropertyPropertyType
See Also