Calculate Method
Definition
Calculate<T>(T, AssignmentOperator, T)
Performs a calculation following the assignment of the two specified values.
public static T Calculate<T>(T x, AssignmentOperator assignment, T y) where T : struct, IConvertible
Parameters
xTThe value to calculate with
y.assignmentAssignmentOperatorOne of the enumeration values that specifies the rules to apply for the assignment operator of
xandy.yTThe value to calculate with
x.
Returns
- T
The result of the
assignmentforxandy.
Type Parameters
TThe type of the values for the operand operation.