ExtendObjectTypeWithStaticPropertyPropertyType Method (String, FuncPropertyType, ActionPropertyType) |
Extends the type with a new generic static property
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax 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:
GenericPropertyPropertyTypeSee Also