1 interface inheriting from IParsable
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\ISpanParsable.cs (1)
10public interface ISpanParsable<TSelf> : IParsable<TSelf>
9 implementations of IParsable
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (2)
2238internal class Point : IParsable<Point>, IEquatable<Point> 2285internal struct ValuePoint : IParsable<ValuePoint>, IEquatable<ValuePoint>
FormMapping\Converters\NullableConverterTests.cs (1)
215private struct ParsableTestStruct : IParsable<ParsableTestStruct>
Microsoft.AspNetCore.Http.Extensions.Tests (3)
ParameterBindingMethodCacheTests.cs (1)
1527public class TodoWithExplicitIParsable : IParsable<TodoWithExplicitIParsable>
RequestDelegateGenerator\SharedTypes.cs (2)
176public class ParsableTodo : IParsable<ParsableTodo> 1035public class TodoWithExplicitIParsable : IParsable<TodoWithExplicitIParsable>
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
176public class ParsableTodo : IParsable<ParsableTodo> 1035public class TodoWithExplicitIParsable : IParsable<TodoWithExplicitIParsable>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2704private struct TryParsableEmployee : IParsable<TryParsableEmployee>
63 references to IParsable
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Converters\DictionaryAdapters\DictionaryBufferAdapter.cs (1)
10where TKey : IParsable<TKey>
FormMapping\Converters\DictionaryAdapters\DictionaryStaticCastAdapter.cs (1)
11where TKey : IParsable<TKey>
FormMapping\Converters\DictionaryAdapters\IDictionaryBufferAdapter.cs (1)
12where TKey : IParsable<TKey>
FormMapping\Converters\DictionaryAdapters\ImmutableSortedDictionaryBufferAdapter.cs (1)
10where TKey : IParsable<TKey>
FormMapping\Converters\ParsableConverter.cs (1)
9internal sealed class ParsableConverter<T> : FormDataConverter<T>, ISingleValueConverter<T> where T : IParsable<T>
FormMapping\Factories\DictionaryConverterFactory.cs (2)
61var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(IParsable<>)); 91var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(IParsable<>));
FormMapping\Factories\ParsableConverterFactory.cs (1)
17return 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)
10where TKey : IParsable<TKey>
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\DictionaryStaticCastAdapter.cs (1)
11where TKey : IParsable<TKey>
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\IDictionaryBufferAdapter.cs (1)
12where TKey : IParsable<TKey>
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ImmutableSortedDictionaryBufferAdapter.cs (1)
10where TKey : IParsable<TKey>
src\Components\Endpoints\src\FormMapping\Converters\ParsableConverter.cs (1)
9internal sealed class ParsableConverter<T> : FormDataConverter<T>, ISingleValueConverter<T> where T : IParsable<T>
src\Components\Endpoints\src\FormMapping\Factories\DictionaryConverterFactory.cs (2)
61var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(IParsable<>)); 91var parsableKeyType = ClosedGenericMatcher.ExtractGenericInterface(keyType, typeof(IParsable<>));
src\Components\Endpoints\src\FormMapping\Factories\ParsableConverterFactory.cs (1)
17return ClosedGenericMatcher.ExtractGenericInterface(type, typeof(IParsable<>)) is not null;
Microsoft.AspNetCore.Http.Extensions.Tests (4)
ParameterBindingMethodCacheTests.cs (2)
1529static TodoWithExplicitIParsable IParsable<TodoWithExplicitIParsable>.Parse(string s, IFormatProvider? provider) 1534static bool IParsable<TodoWithExplicitIParsable>.TryParse(string? s, IFormatProvider? provider, out TodoWithExplicitIParsable result)
RequestDelegateGenerator\SharedTypes.cs (2)
1037static TodoWithExplicitIParsable IParsable<TodoWithExplicitIParsable>.Parse(string s, IFormatProvider provider) 1042static bool IParsable<TodoWithExplicitIParsable>.TryParse(string s, IFormatProvider provider, out TodoWithExplicitIParsable result)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
1037static TodoWithExplicitIParsable IParsable<TodoWithExplicitIParsable>.Parse(string s, IFormatProvider provider) 1042static bool IParsable<TodoWithExplicitIParsable>.TryParse(string s, IFormatProvider provider, out TodoWithExplicitIParsable result)
System.Net.Primitives (4)
System\Net\IPAddress.cs (2)
275static bool IParsable<IPAddress>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 317static IPAddress IParsable<IPAddress>.Parse(string s, IFormatProvider? provider) =>
System\Net\IPNetwork.cs (2)
360static IPNetwork IParsable<IPNetwork>.Parse([NotNull] string s, IFormatProvider? provider) => Parse(s); 363static bool IParsable<IPNetwork>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result);
System.Private.CoreLib (32)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (2)
405static bool IParsable<bool>.Parse(string s, IFormatProvider? provider) => Parse(s); 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\Byte.cs (1)
1110/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
1960static char IParsable<char>.Parse(string s, IFormatProvider? provider) => Parse(s); 1962static 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)
832/// <inheritdoc cref="IParsable{TSelf}.Parse(string, IFormatProvider?)" /> 835/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
2031/// <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)
1809/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1472/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
1824/// <inheritdoc cref="IParsable{TSelf}.Parse(string, IFormatProvider?)" /> 1827/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2175/// <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)
11where TSelf : IParsable<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)
1491/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\String.cs (2)
756static string IParsable<string>.Parse(string s, IFormatProvider? provider) 762static 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)
1002/// <inheritdoc cref="IParsable{TSelf}.Parse(string, IFormatProvider?)" /> 1005/// <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\net10.0\System.Runtime.Forwards.cs (1)
335[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IParsable<>))]
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (1)
5276/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />
System\Numerics\Complex.cs (2)
2182/// <inheritdoc cref="IParsable{TSelf}.Parse(string, IFormatProvider?)" /> 2185/// <inheritdoc cref="IParsable{TSelf}.TryParse(string?, IFormatProvider?, out TSelf)" />