mscorlib(4.0.0.0) API with additions
|
Represents a 64-bit unsigned integer. More...
Public Member Functions | |
int | CompareTo (object value) |
Compares this instance to a specified object and returns an indication of their relative values. More... | |
int | CompareTo (ulong value) |
Compares this instance to a specified 64-bit unsigned integer and returns an indication of their relative values. More... | |
override bool | Equals (object obj) |
Returns a value indicating whether this instance is equal to a specified object. More... | |
bool | Equals (ulong obj) |
Returns a value indicating whether this instance is equal to a specified T:System.UInt64 value. More... | |
override int | GetHashCode () |
Returns the hash code for this instance. More... | |
override string | ToString () |
Converts the numeric value of this instance to its equivalent string representation. More... | |
string | ToString (IFormatProvider provider) |
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. More... | |
string | ToString (string format) |
Converts the numeric value of this instance to its equivalent string representation using the specified format. More... | |
string | ToString (string format, IFormatProvider provider) |
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. More... | |
TypeCode | GetTypeCode () |
Returns the T:System.TypeCode for value type T:System.UInt64. More... | |
bool IConvertible. | ToBoolean (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToBoolean(System.IFormatProvider). More... | |
char IConvertible. | ToChar (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToChar(System.IFormatProvider). More... | |
sbyte IConvertible. | ToSByte (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToSByte(System.IFormatProvider). More... | |
byte IConvertible. | ToByte (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToByte(System.IFormatProvider). More... | |
short IConvertible. | ToInt16 (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToInt16(System.IFormatProvider). More... | |
ushort IConvertible. | ToUInt16 (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToUInt16(System.IFormatProvider). More... | |
int IConvertible. | ToInt32 (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToInt32(System.IFormatProvider). More... | |
uint IConvertible. | ToUInt32 (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToUInt32(System.IFormatProvider). More... | |
long IConvertible. | ToInt64 (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToInt64(System.IFormatProvider). More... | |
ulong IConvertible. | ToUInt64 (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToUInt64(System.IFormatProvider). More... | |
float IConvertible. | ToSingle (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToSingle(System.IFormatProvider). More... | |
double IConvertible. | ToDouble (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToDouble(System.IFormatProvider). More... | |
decimal IConvertible. | ToDecimal (IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToDecimal(System.IFormatProvider). More... | |
DateTime IConvertible. | ToDateTime (IFormatProvider provider) |
This conversion is not supported. Attempting to use this method throws an T:System.InvalidCastException. More... | |
object IConvertible. | ToType (Type type, IFormatProvider provider) |
For a description of this member, see M:System.IConvertible.ToType(System.Type,System.IFormatProvider). More... | |
![]() | |
bool | Equals (T other) |
Indicates whether the current object is equal to another object of the same type. More... | |
Static Public Member Functions | |
static ulong | Parse (string s) |
Converts the string representation of a number to its 64-bit unsigned integer equivalent. More... | |
static ulong | Parse (string s, NumberStyles style) |
Converts the string representation of a number in a specified style to its 64-bit unsigned integer equivalent. More... | |
static ulong | Parse (string s, IFormatProvider provider) |
Converts the string representation of a number in a specified culture-specific format to its 64-bit unsigned integer equivalent. More... | |
static ulong | Parse (string s, NumberStyles style, IFormatProvider provider) |
Converts the string representation of a number in a specified style and culture-specific format to its 64-bit unsigned integer equivalent. More... | |
static bool | TryParse (string s, out ulong result) |
Tries to convert the string representation of a number to its 64-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed. More... | |
static bool | TryParse (string s, NumberStyles style, IFormatProvider provider, out ulong result) |
Tries to convert the string representation of a number in a specified style and culture-specific format to its 64-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed. More... | |
Public Attributes | |
const ulong | MaxValue = 18446744073709551615uL |
Represents the largest possible value of T:System.UInt64. This field is constant. More... | |
const ulong | MinValue = 0uL |
Represents the smallest possible value of T:System.UInt64. This field is constant. More... | |
int System.UInt64.CompareTo | ( | object | value | ) |
Compares this instance to a specified object and returns an indication of their relative values.
value | An object to compare, or null . |
null
. T:System.ArgumentException | value is not a T:System.UInt64. |
int System.UInt64.CompareTo | ( | ulong | value | ) |
Compares this instance to a specified 64-bit unsigned integer and returns an indication of their relative values.
value | An unsigned integer to compare. |
override bool System.UInt64.Equals | ( | object | obj | ) |
Returns a value indicating whether this instance is equal to a specified object.
obj | An object to compare to this instance. |
true
if obj is an instance of T:System.UInt64 and equals the value of this instance; otherwise, false
.bool System.UInt64.Equals | ( | ulong | obj | ) |
Returns a value indicating whether this instance is equal to a specified T:System.UInt64 value.
obj | A T:System.UInt64 value to compare to this instance. |
true
if obj has the same value as this instance; otherwise, false
.override int System.UInt64.GetHashCode | ( | ) |
TypeCode System.UInt64.GetTypeCode | ( | ) |
Returns the T:System.TypeCode for value type T:System.UInt64.
Implements System.IConvertible.
|
static |
Converts the string representation of a number to its 64-bit unsigned integer equivalent.
s | A string that represents the number to convert. |
T:System.ArgumentNullException | The s parameter is null . |
T:System.FormatException | The s parameter is not in the correct format. |
T:System.OverflowException | The s parameter represents a number less than F:System.UInt64.MinValue or greater than F:System.UInt64.MaxValue. |
|
static |
Converts the string representation of a number in a specified style to its 64-bit unsigned integer equivalent.
s | A string that represents the number to convert. The string is interpreted by using the style specified by the style parameter. |
style | A bitwise combination of the enumeration values that specifies the permitted format of s . A typical value to specify is F:System.Globalization.NumberStyles.Integer. |
T:System.ArgumentNullException | The s parameter is null . |
T:System.ArgumentException | style is not a T:System.Globalization.NumberStyles value. -or- style is not a combination of F:System.Globalization.NumberStyles.AllowHexSpecifier and F:System.Globalization.NumberStyles.HexNumber values. |
T:System.FormatException | The s parameter is not in a format compliant with style . |
T:System.OverflowException | The s parameter represents a number less than F:System.UInt64.MinValue or greater than F:System.UInt64.MaxValue. -or- s includes non-zero, fractional digits. |
|
static |
Converts the string representation of a number in a specified culture-specific format to its 64-bit unsigned integer equivalent.
s | A string that represents the number to convert. |
provider | An object that supplies culture-specific formatting information about s . |
T:System.ArgumentNullException | The s parameter is null . |
T:System.FormatException | The s parameter is not in the correct style. |
T:System.OverflowException | The s parameter represents a number less than F:System.UInt64.MinValue or greater than F:System.UInt64.MaxValue. |
|
static |
Converts the string representation of a number in a specified style and culture-specific format to its 64-bit unsigned integer equivalent.
s | A string that represents the number to convert. The string is interpreted by using the style specified by the style parameter. |
style | A bitwise combination of enumeration values that indicates the style elements that can be present in s . A typical value to specify is F:System.Globalization.NumberStyles.Integer. |
provider | An object that supplies culture-specific formatting information about s . |
T:System.ArgumentNullException | The s parameter is null . |
T:System.ArgumentException | style is not a T:System.Globalization.NumberStyles value. -or- style is not a combination of F:System.Globalization.NumberStyles.AllowHexSpecifier and F:System.Globalization.NumberStyles.HexNumber values. |
T:System.FormatException | The s parameter is not in a format compliant with style . |
T:System.OverflowException | The s parameter represents a number less than F:System.UInt64.MinValue or greater than F:System.UInt64.MaxValue. -or- s includes non-zero, fractional digits. |
bool IConvertible. System.UInt64.ToBoolean | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToBoolean(System.IFormatProvider).
provider | This parameter is ignored. |
true
if the value of the current instance is not zero; otherwise, false
.Implements System.IConvertible.
byte IConvertible. System.UInt64.ToByte | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToByte(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
char IConvertible. System.UInt64.ToChar | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToChar(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
DateTime IConvertible. System.UInt64.ToDateTime | ( | IFormatProvider | provider | ) |
This conversion is not supported. Attempting to use this method throws an T:System.InvalidCastException.
provider | This parameter is ignored. |
T:System.InvalidCastException | In all cases. |
Implements System.IConvertible.
decimal IConvertible. System.UInt64.ToDecimal | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToDecimal(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
double IConvertible. System.UInt64.ToDouble | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToDouble(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
short IConvertible. System.UInt64.ToInt16 | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToInt16(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
int IConvertible. System.UInt64.ToInt32 | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToInt32(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
long IConvertible. System.UInt64.ToInt64 | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToInt64(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
sbyte IConvertible. System.UInt64.ToSByte | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToSByte(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
float IConvertible. System.UInt64.ToSingle | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToSingle(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
override string System.UInt64.ToString | ( | ) |
string System.UInt64.ToString | ( | IFormatProvider | provider | ) |
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
provider | An object that supplies culture-specific formatting information. |
Implements System.IConvertible.
string System.UInt64.ToString | ( | string | format | ) |
Converts the numeric value of this instance to its equivalent string representation using the specified format.
format | A numeric format string. |
T:System.FormatException | The format parameter is invalid. |
string System.UInt64.ToString | ( | string | format, |
IFormatProvider | provider | ||
) |
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
format | A numeric format string. |
provider | An object that supplies culture-specific formatting information about this instance. |
T:System.FormatException | The format parameter is invalid. |
Implements System.IFormattable.
object IConvertible. System.UInt64.ToType | ( | Type | type, |
IFormatProvider | provider | ||
) |
For a description of this member, see M:System.IConvertible.ToType(System.Type,System.IFormatProvider).
type | The type to which to convert this T:System.UInt64 value. |
provider | An T:System.IFormatProvider implementation that supplies information about the format of the returned value. |
Implements System.IConvertible.
ushort IConvertible. System.UInt64.ToUInt16 | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToUInt16(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
uint IConvertible. System.UInt64.ToUInt32 | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToUInt32(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
ulong IConvertible. System.UInt64.ToUInt64 | ( | IFormatProvider | provider | ) |
For a description of this member, see M:System.IConvertible.ToUInt64(System.IFormatProvider).
provider | This parameter is ignored. |
Implements System.IConvertible.
|
static |
Tries to convert the string representation of a number to its 64-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed.
s | A string that represents the number to convert. |
result | When this method returns, contains the 64-bit unsigned integer value that is equivalent to the number contained in s , if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or F:System.String.Empty, is not of the correct format, or represents a number less than F:System.UInt64.MinValue or greater than F:System.UInt64.MaxValue. This parameter is passed uninitialized; any value originally supplied in result will be overwritten. |
true
if s was converted successfully; otherwise, false
.
|
static |
Tries to convert the string representation of a number in a specified style and culture-specific format to its 64-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed.
s | A string that represents the number to convert. The string is interpreted by using the style specified by the style parameter. |
style | A bitwise combination of enumeration values that indicates the permitted format of s . A typical value to specify is F:System.Globalization.NumberStyles.Integer. |
provider | An object that supplies culture-specific formatting information about s . |
result | When this method returns, contains the 64-bit unsigned integer value equivalent to the number contained in s , if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or F:System.String.Empty, is not in a format compliant with style , or represents a number less than F:System.UInt64.MinValue or greater than F:System.UInt64.MaxValue. This parameter is passed uninitialized; any value originally supplied in result will be overwritten. |
true
if s was converted successfully; otherwise, false
.T:System.ArgumentException | style is not a T:System.Globalization.NumberStyles value. -or- style is not a combination of F:System.Globalization.NumberStyles.AllowHexSpecifier and F:System.Globalization.NumberStyles.HexNumber values. |
const ulong System.UInt64.MaxValue = 18446744073709551615uL |
Represents the largest possible value of T:System.UInt64. This field is constant.
const ulong System.UInt64.MinValue = 0uL |
Represents the smallest possible value of T:System.UInt64. This field is constant.