Skip to content

UInt24.TryParse Method

Overloads

Name Description
TryParse(String, IFormatProvider, UInt24) Tries to parse a string into a value.
TryParse(String, NumberStyles, IFormatProvider, UInt24) Tries to parse a string into a value.
TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt24) Tries to parse a span of characters into a value.
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt24) Tries to parse a span of characters into a value.
TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt24) Tries to parse a span of UTF-8 characters into a value.
TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt24) Tries to parse a span of UTF-8 characters into a value.

TryParse(String, IFormatProvider, UInt24)

Tries to parse a string into a value.

public static bool TryParse(string? s, IFormatProvider? provider, out UInt24 result);

View source

Parameters

Name Type Description
s String The string to parse.
provider IFormatProvider An object that provides culture-specific formatting information about s.
result UInt24 When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

Boolean

true if s was successfully parsed; otherwise, false.

TryParse(String, NumberStyles, IFormatProvider, UInt24)

Tries to parse a string into a value.

public static bool TryParse(string? s, NumberStyles style, IFormatProvider? provider, out UInt24 result);

View source

Parameters

Name Type Description
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 UInt24 On return, contains the result of succesfully parsing s or an undefined value on failure.

Returns

Boolean

true if s was successfully parsed; otherwise, false.

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt24)

Tries to parse a span of characters into a value.

public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out UInt24 result);

View source

Parameters

Name Type Description
s ReadOnlySpan<Char> The span of characters to parse.
provider IFormatProvider An object that provides culture-specific formatting information about s.
result UInt24 When this method returns, contains the result of successfully parsing s, or an undefined value on failure.

Returns

Boolean

true if s was successfully parsed; otherwise, false.

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

Tries to parse a span of characters into a value.

public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out UInt24 result);

View source

Parameters

Name Type Description
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 UInt24 On return, contains the result of succesfully parsing s or an undefined value on failure.

Returns

Boolean

true if s was successfully parsed; otherwise, false.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt24)

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

public static bool TryParse(ReadOnlySpan<Byte> utf8Text, IFormatProvider? provider, out UInt24 result);

View source

Parameters

Name Type Description
utf8Text ReadOnlySpan<Byte> The span of UTF-8 characters to parse.
provider IFormatProvider An object that provides culture-specific formatting information about utf8Text.
result UInt24 On return, contains the result of successfully parsing utf8Text or an undefined value on failure.

Returns

Boolean

true if utf8Text was successfully parsed; otherwise, false.

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

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

public static bool TryParse(ReadOnlySpan<Byte> utf8Text, NumberStyles style, IFormatProvider? provider, out UInt24 result);

View source

Parameters

Name Type Description
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 UInt24 On return, contains the result of successfully parsing utf8Text or an undefined value on failure.

Returns

Boolean

true if utf8Text was successfully parsed; otherwise, false.