Boolean.ISpanParsable<Boolean>.Parse Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Parses a span of characters into a value.

C#
static bool ISpanParsable<bool>.Parse(ReadOnlySpan<char> s, IFormatProvider provider);

Parameters

s
ReadOnlySpan<Char>

The span of characters to parse.

provider
IFormatProvider

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

Returns

The result of parsing s.

Implements

Applies to

Product Versions
.NET 8, 9, 10