Mono Class Library: System.Convert Overview | Members

System.Convert.ToInt64 Method

Converts a ulong to a long . [Edit]

[System.CLSCompliant(false)]
public static long ToInt64 (ulong value)

Parameters

value
The 64-bit unsigned integer value to be converted. [Edit]

Returns

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

Exceptions

TypeReason
OverflowExceptionvalue is greater than long.MaxValue. [Edit]

Remarks

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

Requirements

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