Mono Class Library: System.UInt64 Overview | Members

System.UInt64.Parse Method

Returns the specified string converted to a ulong value.

[System.CLSCompliant(false)]
public static ulong Parse (string s, System.Globalization.NumberStyles style)

Parameters

s
A string containing the value to convert. The string is interpreted using the style specified by style.
style
Zero or more System.Globalization.NumberStyles values that specify the style of s. Specify multiple values for style using the bitwise OR operator. If style is a null reference, the string is interpreted using the System.Globalization.NumberStyles.Integer style.
s
Documentation for this section has not yet been entered.
style
Documentation for this section has not yet been entered.

Returns

The ulong value obtained from s.

Exceptions

TypeReason
ArgumentNullExceptions is a null reference.
FormatExceptions is not in the correct style.
OverflowExceptions represents a number greater than ulong.MaxValue or less than ulong.MinValue.

Remarks

This version of ulong.Parse(string) is equivalent to ulong.Parse(string)(s, style, null).

The string s is parsed using the formatting information in a System.Globalization.NumberFormatInfo initialized for the current system culture.

Note: For more information, see System.Globalization.NumberFormatInfo.CurrentInfo.

This method is not CLS-compliant. For a CLS-compliant alternative use float.Parse(string)(string, System.Globalization.NumberStyles).

Requirements

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