Cadenza : Cadenza Namespace

UInt16Coda Class

Extension methods for ushort.

[System.CLSCompliant(false)]
public static class UInt16Coda

Remarks

Requirements

Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0

Members

See Also: Inherited members from object.

Public Methods

static
IsEven (this ushort) : bool
Gets a value indicating whether value is an even number.
static
IsOdd (this ushort) : bool
Gets a value indicating whether value is an odd number.

Member Details

IsEven Method

Gets a value indicating whether value is an even number.

public static bool IsEven (this ushort value)

See Also

UInt16Coda.IsOdd(ushort)

Parameters

value
A ushort containing the value to check.

Returns

true if value is an even number; otherwise, false.

Remarks

For purposes of this method, an even value is a number evenly divisible by 2 and the number 0; all other numbers are odd.

Requirements

Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0

IsOdd Method

Gets a value indicating whether value is an odd number.

public static bool IsOdd (this ushort value)

See Also

UInt16Coda.IsEven(ushort)

Parameters

value
A ushort containing the value to check.

Returns

true if value is an odd number; otherwise, false.

Remarks

For purposes of this method, an even value is a number evenly divisible by 2 and the number 0; all other numbers are odd.

Requirements

Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0