Beispiel #1
0
 /// <summary>
 /// Evaluates binary subtraction(-) for the given type(s); this will throw
 /// an InvalidOperationException if the type T does not provide this operator, or for
 /// Nullable&lt;TInner&gt; if TInner does not provide this operator.
 /// </summary>
 public static TArg1 SubtractAlternative <TArg1, TArg2>(TArg1 value1, TArg2 value2)
 {
     return(GenericMath <TArg2, TArg1> .Subtract(value1, value2));
 }
Beispiel #2
0
 /// <summary>
 /// Evaluates binary subtraction (-) for the given type; this will throw
 /// an InvalidOperationException if the type T does not provide this operator, or for
 /// Nullable&lt;TInner&gt; if TInner does not provide this operator.
 /// </summary>
 public static T Subtract <T>(T value1, T value2)
 {
     return(GenericMath <T> .Subtract(value1, value2));
 }