/// <summary> /// Evaluates binary addition (+) for the given type(s); this will throw /// an InvalidOperationException if the type T does not provide this operator, or for /// Nullable<TInner> if TInner does not provide this operator. /// </summary> public static TArg1 AddAlternative <TArg1, TArg2>(TArg1 value1, TArg2 value2) { return(Operator <TArg2, TArg1> .Add(value1, value2)); }
/// <summary> /// Evaluates binary addition (+) for the given type; this will throw /// an InvalidOperationException if the type T does not provide this operator, or for /// Nullable<TInner> if TInner does not provide this operator. /// </summary> public static T Add <T>(T value1, T value2) { return(Operator <T> .Add(value1, value2)); }