Cadenza : Cadenza Namespace

Int64Coda Class

Extension methods for long.

public static class Int64Coda

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 long) : bool
Gets a value indicating whether value is an even number.
static
IsOdd (this long) : 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 long value)

See Also

Int64Coda.IsOdd(long)

Parameters

value
A long 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 long value)

See Also

Int64Coda.IsEven(long)

Parameters

value
A long 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