Table of Contents

Class UShortOperator

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

Implements arithmetic operations for unsigned short integers.

[CLSCompliant(false)]
public class UShortOperator : BaseOperator<ushort>, IOperator<ushort>, IComparer<ushort>, IOperator, IComparer
Inheritance
UShortOperator
Implements
Inherited Members
Extension Methods

Constructors

UShortOperator()

public UShortOperator()

Methods

Add(ushort, ushort)

Adds two unsigned short integers.

public override ushort Add(ushort first, ushort second)

Parameters

first ushort
second ushort

Returns

ushort

Compare(ushort, ushort)

Compares two unsigned short integers.

public override int Compare(ushort first, ushort second)

Parameters

first ushort
second ushort

Returns

int

Divide(ushort, ushort)

Divides the first unsigned short integer by the second.

public override ushort Divide(ushort first, ushort second)

Parameters

first ushort
second ushort

Returns

ushort

Multiply(ushort, ushort)

Multiplies two unsigned short integers.

public override ushort Multiply(ushort first, ushort second)

Parameters

first ushort
second ushort

Returns

ushort

Subtract(ushort, ushort)

Subtracts the second unsigned short integer from the first.

public override ushort Subtract(ushort first, ushort second)

Parameters

first ushort
second ushort

Returns

ushort