ConstructedValueAccessorTValue Constructor |
Namespace:
Aloe.SystemFrameworks.Domain.Attributes
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic ConstructedValueAccessor(
Func<DomainObject, TValue> getFunc,
Action<DomainObject, TValue> setFunc,
bool shouldSupportGet = true,
bool shouldSupportSet = true
)
Public Sub New (
getFunc As Func(Of DomainObject, TValue),
setFunc As Action(Of DomainObject, TValue),
Optional shouldSupportGet As Boolean = true,
Optional shouldSupportSet As Boolean = true
)
public:
ConstructedValueAccessor(
Func<DomainObject^, TValue>^ getFunc,
Action<DomainObject^, TValue>^ setFunc,
bool shouldSupportGet = true,
bool shouldSupportSet = true
)
new :
getFunc : Func<DomainObject, 'TValue> *
setFunc : Action<DomainObject, 'TValue> *
?shouldSupportGet : bool *
?shouldSupportSet : bool
(* Defaults:
let _shouldSupportGet = defaultArg shouldSupportGet true
let _shouldSupportSet = defaultArg shouldSupportSet true
*)
-> ConstructedValueAccessor
Parameters
- getFunc
- Type: SystemFuncDomainObject, TValue
The get function. - setFunc
- Type: SystemActionDomainObject, TValue
The set function. - shouldSupportGet (Optional)
- Type: SystemBoolean
if set to true the accessor should support get. - shouldSupportSet (Optional)
- Type: SystemBoolean
if set to true the accessor should support set.
See Also