5 references to TryParse
Microsoft.AspNetCore.Components (2)
Routing\UrlValueConstraint.cs (2)
68
var x when x == typeof(bool) => new TypedUrlValueConstraint<bool>(bool.
TryParse
),
69
var x when x == typeof(bool?) => new NullableTypedUrlValueConstraint<bool>(bool.
TryParse
),
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (3)
229
if (!
TryParse
(value, out bool result))
239
TryParse
(value.AsSpan(), out result);
415
static bool ISpanParsable<bool>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out bool result) =>
TryParse
(s, out result);