Boolean.ISpanParsable<Boolean>.TryParse Method

Definition

Tries to parse a span of characters into a value.

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

Parameters

s
ReadOnlySpan<Char>

The span of characters to parse.

provider
IFormatProvider

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

result
Boolean

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