Table of Contents

Interface IOperator

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

Provides basic arithmetic operations and comparison functionality.

public interface IOperator : IComparer
Inherited Members
Extension Methods

Methods

Add(object, object)

Adds two objects.

object Add(object first, object second)

Parameters

first object

The first object.

second object

The second object.

Returns

object

The result of addition.

Divide(object, object)

Divides the first object by the second.

object Divide(object first, object second)

Parameters

first object

The first object.

second object

The second object.

Returns

object

The result of division.

Multiply(object, object)

Multiplies two objects.

object Multiply(object first, object second)

Parameters

first object

The first object.

second object

The second object.

Returns

object

The result of multiplication.

Subtract(object, object)

Subtracts the second object from the first.

object Subtract(object first, object second)

Parameters

first object

The first object.

second object

The second object.

Returns

object

The result of subtraction.