IOperator

Ecng.Common

Provides basic arithmetic operations and comparison functionality.

実装: IComparer

メソッド

Add
public object Add(object first, object second)
result = iOperator.Add(first, second)

Adds two objects.

first
The first object.
second
The second object.

戻り値: The result of addition.

Divide
public object Divide(object first, object second)
result = iOperator.Divide(first, second)

Divides the first object by the second.

first
The first object.
second
The second object.

戻り値: The result of division.

Multiply
public object Multiply(object first, object second)
result = iOperator.Multiply(first, second)

Multiplies two objects.

first
The first object.
second
The second object.

戻り値: The result of multiplication.

Subtract
public object Subtract(object first, object second)
result = iOperator.Subtract(first, second)

Subtracts the second object from the first.

first
The first object.
second
The second object.

戻り値: The result of subtraction.