1 interface inheriting from IParsable
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\ISpanParsable.cs (1)
10
public interface ISpanParsable<TSelf> :
IParsable
<TSelf>
6 implementations of IParsable
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (2)
2238
internal class Point :
IParsable
<Point>, IEquatable<Point>
2285
internal struct ValuePoint :
IParsable
<ValuePoint>, IEquatable<ValuePoint>
FormMapping\Converters\NullableConverterTests.cs (1)
215
private struct ParsableTestStruct :
IParsable
<ParsableTestStruct>
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
176
public class ParsableTodo :
IParsable
<ParsableTodo>
1035
public class TodoWithExplicitIParsable :
IParsable
<TodoWithExplicitIParsable>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2704
private struct TryParsableEmployee :
IParsable
<TryParsableEmployee>
64 references to IParsable
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Converters\DictionaryAdapters\DictionaryBufferAdapter.cs (1)
10
where TKey :
IParsable
<TKey>
FormMapping\Converters\DictionaryAdapters\DictionaryStaticCastAdapter.cs (1)
11
where TKey :
IParsable
<TKey>
FormMapping\Converters\DictionaryAdapters\IDictionaryBufferAdapter.cs (1)
12
where TKey :
IParsable
<TKey>
FormMapping\Converters\DictionaryAdapters\ImmutableSortedDictionaryBufferAdapter.cs (1)
10
where TKey :
IParsable
<TKey>
FormMapping\Converters\ParsableConverter.cs (1)
9
internal sealed class ParsableConverter<T> : FormDataConverter<T>, ISingleValueConverter<T> where T :
IParsable
<T>
FormMapping\Factories\DictionaryConverterFactory.cs (2)
61
var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(
IParsable
<>));
91
var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(
IParsable
<>));
FormMapping\Factories\ParsableConverterFactory.cs (1)
17
return ClosedGenericMatcher.ExtractGenericInterface(type, typeof(
IParsable
<>)) is not null;
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\IParameterBindingMetadata.cs (1)
25
/// <see langword="true "/> is the parameter is associated with a type that implements <see cref="
IParsable
{TSelf}" /> or exposes a <c>TryParse</c> method.
Microsoft.AspNetCore.Http.Extensions (8)
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\DictionaryBufferAdapter.cs (1)
10
where TKey :
IParsable
<TKey>
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\DictionaryStaticCastAdapter.cs (1)
11
where TKey :
IParsable
<TKey>
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\IDictionaryBufferAdapter.cs (1)
12
where TKey :
IParsable
<TKey>
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ImmutableSortedDictionaryBufferAdapter.cs (1)
10
where TKey :
IParsable
<TKey>
src\Components\Endpoints\src\FormMapping\Converters\ParsableConverter.cs (1)
9
internal sealed class ParsableConverter<T> : FormDataConverter<T>, ISingleValueConverter<T> where T :
IParsable
<T>
src\Components\Endpoints\src\FormMapping\Factories\DictionaryConverterFactory.cs (2)
61
var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(
IParsable
<>));
91
var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(
IParsable
<>));
src\Components\Endpoints\src\FormMapping\Factories\ParsableConverterFactory.cs (1)
17
return ClosedGenericMatcher.ExtractGenericInterface(type, typeof(
IParsable
<>)) is not null;
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
1037
static TodoWithExplicitIParsable
IParsable
<TodoWithExplicitIParsable>.Parse(string s, IFormatProvider provider)
1042
static bool
IParsable
<TodoWithExplicitIParsable>.TryParse(string s, IFormatProvider provider, out TodoWithExplicitIParsable result)
Microsoft.AspNetCore.Identity (1)
GeneratedRouteBuilderExtensions.g.cs (1)
1451
private static bool TryParseExplicit<T>(string? s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out T result) where T:
IParsable
<T>
Sample (1)
artifacts\obj\Sample\Release\net11.0\generated\Microsoft.AspNetCore.Http.RequestDelegateGenerator\Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator\GeneratedRouteBuilderExtensions.g.cs (1)
5972
private static bool TryParseExplicit<T>(string? s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out T result) where T:
IParsable
<T>
System.Net.Primitives (6)
System\Net\IPAddress.cs (2)
276
static bool
IParsable
<IPAddress>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) =>
318
static IPAddress
IParsable
<IPAddress>.Parse(string s, IFormatProvider? provider) =>
System\Net\IPEndPoint.cs (2)
240
static IPEndPoint
IParsable
<IPEndPoint>.Parse(string s, IFormatProvider? provider) => Parse(s);
267
static bool
IParsable
<IPEndPoint>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPEndPoint? result)
System\Net\IPNetwork.cs (2)
360
static IPNetwork
IParsable
<IPNetwork>.Parse([NotNull] string s, IFormatProvider? provider) => Parse(s);
363
static bool
IParsable
<IPNetwork>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result);
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (2)
405
static bool
IParsable
<bool>.Parse(string s, IFormatProvider? provider) => Parse(s);
407
static bool
IParsable
<bool>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out bool result) => TryParse(s, out result);
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\Char.cs (2)
1979
static char
IParsable
<char>.Parse(string s, IFormatProvider? provider) => Parse(s);
1981
static bool
IParsable
<char>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
892
/// <inheritdoc cref="
IParsable
{TSelf}.Parse(string, IFormatProvider?)" />
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 (2)
1836
/// <inheritdoc cref="
IParsable
{TSelf}.Parse(string, IFormatProvider?)" />
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\IParsable.cs (1)
11
where TSelf :
IParsable
<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\String.cs (2)
756
static string
IParsable
<string>.Parse(string s, IFormatProvider? provider)
762
static bool
IParsable
<string>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out string result)
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
1061
/// <inheritdoc cref="
IParsable
{TSelf}.Parse(string, IFormatProvider?)" />
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 (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
336
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
IParsable
<>))]
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
5082
/// <inheritdoc cref="
IParsable
{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
System\Numerics\Complex.cs (2)
2245
/// <inheritdoc cref="
IParsable
{TSelf}.Parse(string, IFormatProvider?)" />
2248
/// <inheritdoc cref="
IParsable
{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />