ShortOperator

Ecng.Common

Implements arithmetic operations for short integers.

继承自: BaseOperator<short>

方法

Add
public override short Add(short first, short second)
result = shortOperator.Add(first, second)

Adds two short integers.

Compare
public override int Compare(short first, short second)
result = shortOperator.Compare(first, second)

Compares two short integers.

Divide
public override short Divide(short first, short second)
result = shortOperator.Divide(first, second)

Divides the first short integer by the second.

Multiply
public override short Multiply(short first, short second)
result = shortOperator.Multiply(first, second)

Multiplies two short integers.

Subtract
public override short Subtract(short first, short second)
result = shortOperator.Subtract(first, second)

Subtracts the second short integer from the first.