Mono Class Library: System.Convert Overview | Members

System.Convert.ToUInt64 Method

Converts a int to a ulong . [Edit]

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

Parameters

value
The 32-bit signed integer value to be converted. [Edit]

Returns

value as a 64-bit unsigned integer. [Edit]

Exceptions

TypeReason
OverflowExceptionvalue is less than ulong.MinValue . [Edit]

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToDecimal(object)(int). [Edit]

Requirements

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