System.UInt64.ToString Method

Converts the numeric value of this instance to its equivalent string representation.

Syntax

public override string ToString ()

Returns

The string representation of the value of this instance, consisting of a sequence of digits ranging from 0 to 9, without a sign or leading zeroes.

Remarks

The ulong.ToString method formats a ulong value in the default ("G", or general) format by using the System.Globalization.NumberFormatInfo object of the current culture. If you want to specify a different format or culture, use the other overloads of the ulong.ToString(string) method, as follows:

Default ("G") format

A specific culture

ulong.ToString(IFormatProvider)

A specific format

Default (current) culture

ulong.ToString(string)

A specific format

A specific culture

ulong.ToString(string, IFormatProvider)

Requirements

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