IOperable
Ecng.Common
Provides operations for performing arithmetic calculations on objects of type T.
Implements: IComparable<T>
Methods
Add
public T Add(T other)
result = iOperable.Add(other)
Adds the specified object to the current object.
- other
- The object to add.
Returns: The result of the addition operation.
Divide
public T Divide(T other)
result = iOperable.Divide(other)
Divides the current object by the specified object.
- other
- The object to divide by.
Returns: The result of the division operation.
Multiply
public T Multiply(T other)
result = iOperable.Multiply(other)
Multiplies the current object by the specified object.
- other
- The object to multiply with.
Returns: The result of the multiplication operation.
Subtract
public T Subtract(T other)
result = iOperable.Subtract(other)
Subtracts the specified object from the current object.
- other
- The object to subtract.
Returns: The result of the subtraction operation.