Mono Class Library: System.Convert Overview | Members

System.Convert.ToUInt64 Method

Converts a bool to a ulong .

[System.CLSCompliant(false)]
public static ulong ToUInt64 (bool value)

Parameters

value
The bool value to be converted.

Returns

If value is true returns 1; if value is false returns 0.

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToDecimal(object)(bool).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0