ValueHandleBinaryOperationResultType, ResultPrimitiveType Method
Handles math and comparison operations of underlying primitve values in derived types.
Namespace: Fluent.Calculations.Primitives.BaseTypesAssembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
protected ResultType HandleBinaryOperation<ResultType, ResultPrimitiveType>(
IValueProvider right,
Func<IValueProvider, IValueProvider, ResultPrimitiveType> expressionFunc,
string operatorName
)
where ResultType : new(), IValueProvider
- right IValueProvider
- Right side value of operatoin
- expressionFunc FuncIValueProvider, IValueProvider, ResultPrimitiveType
- Expression representing operation in derived type
- operatorName String
- Operation name (ex. Add, Substract, LessThan)
- ResultType
- Operation result type
- ResultPrimitiveType
- .NET primitive value type (ex. decimal, boolean)
ResultTypeResult value of defined type containg input values as arguments
Examples are Number and Condition classes that are using this method.