Table of Contents

Interface IOperable<T>

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

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 T

The 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 T

The 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 T

The 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 T

The object to subtract.

Returns

T

The result of the subtraction operation.