DynamicInvokeSubtractionOperatorT Method

Uses reflection to invoke the subtraction operator for T using left and right as the parameters. Returns the result of the operation or throws an InvalidOperationException if no such operator is defined.

Definition

Namespace: Jodosoft.Primitives
Assembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static T SubtractionOperator<T>(
	T left,
	T right
)

Parameters

left  T
The left value to pass to operator.
right  T
The right value to pass to the operator.

Type Parameters

T
The type for which the operator is defined.

Return Value

T
The result of invoking the operator.

See Also