BaseOperator
Provides a base implementation for arithmetic operators.
Implementa: IOperator<T>, IComparer<T>, IOperator, IComparer
Métodos
public abstract T Add(T first, T second)
result = baseOperator.Add(first, second)
Adds two values.
- first
- The first value.
- second
- The second value.
Devuelve: The result of addition.
public abstract int Compare(T x, T y)
result = baseOperator.Compare(x, y)
Compares two values.
- x
- The first value.
- y
- The second value.
Devuelve: A value indicating the relative order.
public abstract T Divide(T first, T second)
result = baseOperator.Divide(first, second)
Divides the first value by the second.
- first
- The first value.
- second
- The second value.
Devuelve: The result of division.
Ecng#Common#IOperator#Add(object, object)
Adds two objects.
- first
- The first object.
- second
- The second object.
Devuelve: The result of addition.
Ecng#Common#IOperator#Divide(object, object)
Divides the first object by the second.
- first
- The first object.
- second
- The second object.
Devuelve: The result of division.
Ecng#Common#IOperator#Multiply(object, object)
Multiplies two objects.
- first
- The first object.
- second
- The second object.
Devuelve: The result of multiplication.
Ecng#Common#IOperator#Subtract(object, object)
Subtracts the second object from the first.
- first
- The first object.
- second
- The second object.
Devuelve: The result of subtraction.
public abstract T Multiply(T first, T second)
result = baseOperator.Multiply(first, second)
Multiplies two values.
- first
- The first value.
- second
- The second value.
Devuelve: The result of multiplication.
public abstract T Subtract(T first, T second)
result = baseOperator.Subtract(first, second)
Subtracts the second value from the first.
- first
- The first value.
- second
- The second value.
Devuelve: The result of subtraction.
System#Collections#IComparer#Compare(object, object)
Compares two objects.
- x
- The first object.
- y
- The second object.
Devuelve: A value indicating the relative order.