UInt128.TryParse Method

Definition

Overloads

TryParse(ReadOnlySpan<Char>, UInt128)

Tries to parse a span of characters into a value.

TryParse(String, UInt128)

Tries to parse a string into a value.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt128)

Tries to parse a span of UTF-8 characters into a value.

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt128)

Tries to parse a string into a value.

TryParse(String, IFormatProvider, UInt128)

Tries to parse a string into a value.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt128)

Tries to parse a span of UTF-8 characters into a value.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt128)

Tries to parse a span of characters into a value.

TryParse(ReadOnlySpan<Byte>, UInt128)

Tries to convert a UTF-8 character span containing the string representation of a number to its 128-bit unsigned integer equivalent.

TryParse(String, NumberStyles, IFormatProvider, UInt128)

Tries to parse a string into a value.

TryParse(ReadOnlySpan<Char>, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a span of characters into a value.

public:
 static bool TryParse(ReadOnlySpan<char> s, [Runtime::InteropServices::Out] UInt128 % result);
public static bool TryParse (ReadOnlySpan<char> s, out UInt128 result);
static member TryParse : ReadOnlySpan<char> * UInt128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), ByRef result As UInt128) As Boolean

Parameters

s
ReadOnlySpan<Char>

The span of characters to parse.

result
UInt128

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.

Applies to

TryParse(String, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a string into a value.

public:
 static bool TryParse(System::String ^ s, [Runtime::InteropServices::Out] UInt128 % result);
public static bool TryParse (string? s, out UInt128 result);
static member TryParse : string * UInt128 -> bool
Public Shared Function TryParse (s As String, ByRef result As UInt128) As Boolean

Parameters

s
String

The string to parse.

result
UInt128

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.

Applies to

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a span of UTF-8 characters into a value.

public:
 static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = IUtf8SpanParsable<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<byte> * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider, ByRef result As UInt128) As Boolean

Parameters

utf8Text
ReadOnlySpan<Byte>

The span of UTF-8 characters to parse.

provider
IFormatProvider

An object that provides culture-specific formatting information about utf8Text.

result
UInt128

On return, contains the result of successfully parsing utf8Text or an undefined value on failure.

Returns

true if utf8Text was successfully parsed; otherwise, false.

Applies to

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a string into a value.

public:
 static bool TryParse(ReadOnlySpan<char> s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = ISpanParsable<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<char> s, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<char> * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As UInt128) As Boolean

Parameters

s
ReadOnlySpan<Char>

The string to parse.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

result
UInt128

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.

Applies to

TryParse(String, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a string into a value.

public:
 static bool TryParse(System::String ^ s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = IParsable<UInt128>::TryParse;
public static bool TryParse (string? s, IFormatProvider? provider, out UInt128 result);
static member TryParse : string * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As String, provider As IFormatProvider, ByRef result As UInt128) As Boolean

Parameters

s
String

The string to parse.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

result
UInt128

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.

Applies to

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a span of UTF-8 characters into a value.

public:
 static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = System::Numerics::INumberBase<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), style As NumberStyles, provider As IFormatProvider, ByRef result As UInt128) As Boolean

Parameters

utf8Text
ReadOnlySpan<Byte>

The span of UTF-8 characters to parse.

style
NumberStyles

A bitwise combination of number styles that can be present in utf8Text.

provider
IFormatProvider

An object that provides culture-specific formatting information about utf8Text.

result
UInt128

On return, contains the result of successfully parsing utf8Text or an undefined value on failure.

Returns

true if utf8Text was successfully parsed; otherwise, false.

Applies to

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a span of characters into a value.

public:
 static bool TryParse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = System::Numerics::INumberBase<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), style As NumberStyles, provider As IFormatProvider, ByRef result As UInt128) As Boolean

Parameters

s
ReadOnlySpan<Char>

The span of characters to parse.

style
NumberStyles

A bitwise combination of number styles that can be present in s.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

result
UInt128

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.

Applies to

TryParse(ReadOnlySpan<Byte>, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs

Tries to convert a UTF-8 character span containing the string representation of a number to its 128-bit unsigned integer equivalent.

public:
 static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, [Runtime::InteropServices::Out] UInt128 % result);
public static bool TryParse (ReadOnlySpan<byte> utf8Text, out UInt128 result);
static member TryParse : ReadOnlySpan<byte> * UInt128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), ByRef result As UInt128) As Boolean

Parameters

utf8Text
ReadOnlySpan<Byte>

A span containing the UTF-8 characters representing the number to convert.

result
UInt128

When this method returns, contains the 128-bit unsigned integer value equivalent to the number contained in utf8Text if the conversion succeeded, or zero if the conversion failed. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.

Returns

true if utf8Text was converted successfully; otherwise, false.

Applies to

TryParse(String, NumberStyles, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
UInt128.cs

Tries to parse a string into a value.

public:
 static bool TryParse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = System::Numerics::INumberBase<UInt128>::TryParse;
public static bool TryParse (string? s, System.Globalization.NumberStyles style, IFormatProvider? provider, out UInt128 result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As String, style As NumberStyles, provider As IFormatProvider, ByRef result As UInt128) As Boolean

Parameters

s
String

The string to parse.

style
NumberStyles

A bitwise combination of number styles that can be present in s.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

result
UInt128

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.

Applies to