Test additional content header

ValueHandleBinaryOperationResultType, ResultPrimitiveType Method

Handles math and comparison operations of underlying primitve values in derived types.

Definition

Namespace: Fluent.Calculations.Primitives.BaseTypes
Assembly: 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

Parameters

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)

Type Parameters

ResultType
Operation result type
ResultPrimitiveType
.NET primitive value type (ex. decimal, boolean)

Return Value

ResultType
Result value of defined type containg input values as arguments

Remarks

Examples are Number and Condition classes that are using this method.

See Also