System.UInt64 Structure

Represents a 64-bit unsigned integer.

See Also: UInt64 Members


public struct UInt64 : IComparable, IComparable<ulong>, IConvertible, IEquatable<ulong>, IFormattable


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


   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.


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