/// <summary> /// Evaluates binary division (/) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T Divide <T>(T value1, T value2) { return(Operator <T> .Divide(value1, value2)); }
/// <summary> /// Evaluates binary subtraction (-) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T Subtract <T>(T value1, T value2) { return(Operator <T> .Subtract(value1, value2)); }
/// <summary> /// Evaluates binary multiplication (*) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T Multiply <T>(T value1, T value2) { return(Operator <T> .Multiply(value1, value2)); }
/// <summary> /// Evaluates binary addition (+) for the given type. /// </summary> /// <exception cref = "InvalidOperationException">The generic type does not provide this operator.</exception> public static T Add <T>(T value1, T value2) { return(Operator <T> .Add(value1, value2)); }