Interface IOperable<T>
Provides operations for performing arithmetic calculations on objects of type T.
public interface IOperable<T> : IComparable<T>
Type Parameters
T
The type on which arithmetic operations are performed.
- Inherited Members
- Extension Methods
Methods
Add(T)
Adds the specified object to the current object.
T Add(T other)
Parameters
other
TThe object to add.
Returns
- T
The result of the addition operation.
Divide(T)
Divides the current object by the specified object.
T Divide(T other)
Parameters
other
TThe object to divide by.
Returns
- T
The result of the division operation.
Multiply(T)
Multiplies the current object by the specified object.
T Multiply(T other)
Parameters
other
TThe object to multiply with.
Returns
- T
The result of the multiplication operation.
Subtract(T)
Subtracts the specified object from the current object.
T Subtract(T other)
Parameters
other
TThe object to subtract.
Returns
- T
The result of the subtraction operation.