INumberBase<TSelf>.IUtf8SpanParsable<TSelf>.TryParse Method

Definition

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

C#
static bool IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider provider, out TSelf result);

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
TSelf

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

Returns

true if utf8Text was successfully parsed; otherwise, false.

Implements

Applies to

Produkt Versiounen
.NET 8, 9, 10