IOperable

Ecng.Common

Provides operations for performing arithmetic calculations on objects of type T.

Implementiert: IComparable<T>

Methoden

Add
public T Add(T other)
result = iOperable.Add(other)

Adds the specified object to the current object.

other
The object to add.

Rückgabe: 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.

Rückgabe: 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.

Rückgabe: 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.

Rückgabe: The result of the subtraction operation.