 |
| IBcfParameterSetter Interface |
Interface for parameter behavior items to update a function or validator parameter property.
Namespace: CalculationWorks.BusinessModel.BehaviorsAssembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.2.1.2
Syntaxpublic interface IBcfParameterSetter
Public Interface IBcfParameterSetter
public interface class IBcfParameterSetter
type IBcfParameterSetter = interface end
The IBcfParameterSetter type exposes the following members.
Methods|
| Name | Description |
|---|
 | SetValue |
Updates the parameter property.
|
Top
Examples
The code shows a BcfParameterBehaviorItemBase implementing IBcfParameterSetter.
public class ParameterSetter<TFunction, TProperty> : BcfParameterBehaviorItemBase, IBcfParameterSetter where TFunction : BcfFunctionBaseInternal {
private readonly Action<TFunction, TProperty> actionField;
public ParameterSetter(Action<TFunction, TProperty> action) {
actionField = action;
}
public void SetValue(object value, BcfFunctionBaseInternal instance) {
actionField((TFunction)instance, (TProperty)value);
}
}
Version InformationCalculationWorks.BusinessModel
Supported in: 3.2, 3.0, 2.1, 2.0
See Also