Click or drag to resize
CalculationWorks Logo
IBcfParameterSetter Interface
Interface for parameter behavior items to update a function or validator parameter property.

Namespace: CalculationWorks.BusinessModel.Behaviors
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.2.1.2
Syntax
public interface IBcfParameterSetter

The IBcfParameterSetter type exposes the following members.

Methods
  NameDescription
Public methodSetValue
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 Information

CalculationWorks.BusinessModel

Supported in: 3.2, 3.0, 2.1, 2.0
See Also