Remainder Method
Definition
Remainder<T>(T, T)
Performs a binary division of the two specified values and computes the remainder hereof.
public static T Remainder<T>(T x, T y) where T : struct, IConvertible
Parameters
xTThe dividend.
yTThe divisor.
Returns
- T
The remainder after dividing
xbyy.
Type Parameters
TThe type of the values for the operand operation.
Exceptions
- TypeArgumentException
Tis outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.- DivideByZeroException
yis zero.- OverflowException
The sum of
xandyis less than or greater than the byTvalidMinValueandMaxValue.