System.UInt64 Structure

Represents a 64-bit unsigned integer.

See Also: UInt64 Members

Syntax

[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public struct UInt64 : IComparable, IComparable<ulong>, IConvertible, IEquatable<ulong>, IFormattable

Remarks

The ulong value type represents unsigned integers with values ranging from 0 to 18,446,744,073,709,551,615.

Note:

   The ulong type is not CLS-compliant. The CLS-compliant alternative type is decimal. long can be used instead to replace a ulong value that ranges from zero to long.MaxValue. For more information about CLS compliance, see Common Language Specification.

ulong provides methods to compare instances of this type, convert the value of an instance to its string representation, and convert the string representation of a number to an instance of this type.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

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