7 implementations of TryParse
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
1042static bool IParsable<TodoWithExplicitIParsable>.TryParse(string s, IFormatProvider provider, out TodoWithExplicitIParsable result)
System.Net.Primitives (3)
System\Net\IPAddress.cs (1)
276static bool IParsable<IPAddress>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) =>
System\Net\IPEndPoint.cs (1)
267static bool IParsable<IPEndPoint>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPEndPoint? result)
System\Net\IPNetwork.cs (1)
363static bool IParsable<IPNetwork>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
407static bool IParsable<bool>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out bool result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1981static bool IParsable<char>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\String.cs (1)
762static bool IParsable<string>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out string result)
29 references to TryParse
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\ParsableConverter.cs (1)
15if (T.TryParse(value, reader.Culture, out result!))
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\ParsableConverter.cs (1)
15if (T.TryParse(value, reader.Culture, out result!))
Microsoft.AspNetCore.Identity (1)
GeneratedRouteBuilderExtensions.g.cs (1)
1452=> T.TryParse(s, provider, out result);
Sample (1)
artifacts\obj\Sample\Release\net11.0\generated\Microsoft.AspNetCore.Http.RequestDelegateGenerator\Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator\GeneratedRouteBuilderExtensions.g.cs (1)
5973=> T.TryParse(s, provider, out result);
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1110/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
895/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
2048/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
1033/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1810/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1474/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1839/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2171/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1928/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1307/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1373/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1376/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
249/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1948/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1793/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1270/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1493/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
1064/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
2006/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
1129/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
1174/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
1167/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
278/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
5082/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
System\Numerics\Complex.cs (1)
2248/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />