1 interface inheriting from ISpanParsable
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
26ISpanParsable<TSelf>,
15 implementations of ISpanParsable
System.Net.Primitives (3)
System\Net\IPAddress.cs (1)
20public class IPAddress : ISpanFormattable, ISpanParsable<IPAddress>, IUtf8SpanFormattable, IUtf8SpanParsable<IPAddress>
System\Net\IPEndPoint.cs (1)
17public class IPEndPoint : EndPoint, ISpanFormattable, ISpanParsable<IPEndPoint>, IUtf8SpanFormattable, IUtf8SpanParsable<IPEndPoint>
System\Net\IPNetwork.cs (1)
22public readonly struct IPNetwork : IEquatable<IPNetwork>, ISpanFormattable, ISpanParsable<IPNetwork>, IUtf8SpanFormattable, IUtf8SpanParsable<IPNetwork>
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
21ISpanParsable<bool>
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
21ISpanParsable<DateOnly>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
56ISpanParsable<DateTime>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
45ISpanParsable<DateTimeOffset>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
30ISpanParsable<Guid>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
25ISpanParsable<Decimal128>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
25ISpanParsable<Decimal32>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
25ISpanParsable<Decimal64>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (1)
34ISpanParsable<string>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
36, ISpanParsable<Rune>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
20ISpanParsable<TimeOnly>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
28ISpanParsable<TimeSpan>,
94 references to ISpanParsable
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
10where TKey : ISpanParsable<TKey>
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
10where TKey : ISpanParsable<TKey>
FormMapping\Converters\DictionaryConverter.cs (1)
15where TKey : ISpanParsable<TKey>
FormMapping\Factories\Dictionary\ConcreteTypeDictionaryConverterFactory.cs (1)
9where TKey : ISpanParsable<TKey>
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (1)
12where TKey : ISpanParsable<TKey>
Microsoft.AspNetCore.Http.Extensions (5)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
10where TKey : ISpanParsable<TKey>
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
10where TKey : ISpanParsable<TKey>
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryConverter.cs (1)
15where TKey : ISpanParsable<TKey>
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Dictionary\ConcreteTypeDictionaryConverterFactory.cs (1)
9where TKey : ISpanParsable<TKey>
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (1)
12where TKey : ISpanParsable<TKey>
Microsoft.DotNet.Cli.CommandLine (10)
SpanParsableExtensions.cs (10)
12extension<T>(Option<T> o) where T : ISpanParsable<T> 15/// Configures the option with a custom parser that uses the <see cref="ISpanParsable{T}"/> implementation to parse the tokens provided. 29extension<T>(Option<IReadOnlyCollection<T>> o) where T : ISpanParsable<T> 32/// Configures the option with a custom parser that uses the <see cref="ISpanParsable{T}"/> implementation to parse the tokens provided. 46extension<T>(Argument<T> a) where T : ISpanParsable<T> 49/// Configures the argument with a custom parser that uses the <see cref="ISpanParsable{T}"/> implementation to parse the value. 63extension<T>(Argument<IReadOnlyCollection<T>> a) where T : ISpanParsable<T> 66/// Configures the argument with a custom parser that uses the <see cref="ISpanParsable{T}"/> implementation to parse the value. 81where T : ISpanParsable<T> 121where T : ISpanParsable<T>
System.Net.Primitives (6)
System\Net\IPAddress.cs (2)
281static bool ISpanParsable<IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 313static IPAddress ISpanParsable<IPAddress>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) =>
System\Net\IPEndPoint.cs (2)
233static IPEndPoint ISpanParsable<IPEndPoint>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 260static bool ISpanParsable<IPEndPoint>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPEndPoint? result) => TryParse(s, out result);
System\Net\IPNetwork.cs (2)
366static IPNetwork ISpanParsable<IPNetwork>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 372static bool ISpanParsable<IPNetwork>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result);
System.Private.CoreLib (61)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (2)
413static bool ISpanParsable<bool>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 415static bool ISpanParsable<bool>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out bool result) => TryParse(s, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (2)
1146/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1149/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
2041static char ISpanParsable<char>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 2043static bool ISpanParsable<char>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
902/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 905/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (2)
2055/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2058/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
1040/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1043/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1815/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1818/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1837/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1840/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
1847/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1850/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
2284/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2287/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
2053/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2056/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
1352/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1355/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1403/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1406/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1406/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1409/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\ISpanParsable.cs (1)
11where TSelf : ISpanParsable<TSelf>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
2006/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2009/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (2)
134/// <inheritdoc cref="ISpanParsable{T}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 190/// <inheritdoc cref="ISpanParsable{T}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (2)
126/// <inheritdoc cref="ISpanParsable{T}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 182/// <inheritdoc cref="ISpanParsable{T}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (2)
135/// <inheritdoc cref="ISpanParsable{T}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 191/// <inheritdoc cref="ISpanParsable{T}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out T)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1781/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1784/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (2)
1331/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1334/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1751/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1754/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (2)
776static string ISpanParsable<string>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) 785static bool ISpanParsable<string>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out string result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (4)
1026/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1027static Rune ISpanParsable<Rune>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) 1037/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1038static bool ISpanParsable<Rune>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Rune result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (4)
455/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 633/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1071/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1074/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
2135/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2138/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (2)
1151/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1154/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (2)
1222/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1225/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
1223/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1226/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
343[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ISpanParsable<>))]
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
5542/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 5545/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
System\Numerics\Complex.cs (2)
918/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 921/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
System\Numerics\Complex.Generic.cs (2)
2124/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2127/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />