1 interface inheriting from ISpanFormattable
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
25ISpanFormattable,
31 implementations of ISpanFormattable
Microsoft.Extensions.Telemetry (1)
Logging\JustInTimeRedactor.cs (1)
19, ISpanFormattable
Microsoft.Extensions.Telemetry.Tests (1)
Logging\JustInTimeRedactorTests.cs (1)
105private sealed class SpanFormattable : ISpanFormattable
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 (24)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
19ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
27ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
20ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
51ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
40ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
63: ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
24ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
22public abstract partial class Enum : ValueType, IComparable, ISpanFormattable, IConvertible
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
25: ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
22ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
31ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
24ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
33, ISpanFormattable
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
19ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
27ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
21ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
31ISpanFormattable,
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
22public sealed class Version : ICloneable, IComparable, IComparable<Version?>, IEquatable<Version?>, ISpanFormattable, IUtf8SpanFormattable, IUtf8SpanParsable<Version>
System.Private.Uri (1)
System\Uri.cs (1)
20public partial class Uri : ISpanFormattable, IEquatable<Uri>, ISerializable
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
18: ISpanFormattable,
55 references to ISpanFormattable
Microsoft.AspNetCore.Components.Forms (4)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (3)
263else if (typeof(ISpanFormattable).IsAssignableFrom(memberType)) 265var func = CompileMemberEvaluator<ISpanFormattable>(memberExpression); 295case ISpanFormattable spanFormattable:
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
91public void InsertFront<T>(T value) where T : ISpanFormattable
Microsoft.AspNetCore.Components.Web (4)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (3)
263else if (typeof(ISpanFormattable).IsAssignableFrom(memberType)) 265var func = CompileMemberEvaluator<ISpanFormattable>(memberExpression); 295case ISpanFormattable spanFormattable:
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
91public void InsertFront<T>(T value) where T : ISpanFormattable
Microsoft.Extensions.Telemetry (1)
Logging\JustInTimeRedactor.cs (1)
91if (value is ISpanFormattable sf)
System.Console (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
8internal void AppendSpanFormattable<T>(T value, string? format = null, IFormatProvider? provider = null) where T : ISpanFormattable
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
390private void InternalWrite<T>(T message) where T : ISpanFormattable
System.Net.Http (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
8internal void AppendSpanFormattable<T>(T value, string? format = null, IFormatProvider? provider = null) where T : ISpanFormattable
System.Net.Primitives (3)
System\Net\IPAddress.cs (1)
490bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
System\Net\IPEndPoint.cs (1)
315bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
System\Net\IPNetwork.cs (1)
350bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
System.Private.CoreLib (32)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
8internal void AppendSpanFormattable<T>(T value, string? format = null, IFormatProvider? provider = null) where T : ISpanFormattable
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
178bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
1687bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1249bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) =>
src\libraries\System.Private.CoreLib\src\System\IUtf8SpanFormattable.cs (1)
16/// An implementation of this interface should produce the same string of characters as an implementation of <see cref="IFormattable.ToString"/> or <see cref="ISpanFormattable.TryFormat"/>
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (4)
6123if (value is ISpanFormattable) 6125if (((ISpanFormattable)value).TryFormat(_destination.Slice(_pos), out int charsWritten, default, _provider)) // constrained call avoiding boxing for value types 6184if (value is ISpanFormattable) 6186if (((ISpanFormattable)value).TryFormat(_destination.Slice(_pos), out int charsWritten, format, _provider)) // constrained call avoiding boxing for value types
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (4)
279if (value is ISpanFormattable) 282while (!((ISpanFormattable)value).TryFormat(_chars.Slice(_pos), out charsWritten, default, _provider)) // constrained call avoiding boxing for value types 346if (value is ISpanFormattable) 349while (!((ISpanFormattable)value).TryFormat(_chars.Slice(_pos), out charsWritten, format, _provider)) // constrained call avoiding boxing for value types
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
976else if (typeof(T).IsValueType && default(T) is ISpanFormattable)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
936bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (8)
1056private StringBuilder AppendSpanFormattable<T>(T value) where T : ISpanFormattable 1069internal StringBuilder AppendSpanFormattable<T>(T value, string? format, IFormatProvider? provider) where T : ISpanFormattable 1412private StringBuilder InsertSpanFormattable<T>(int index, T value) where T : ISpanFormattable 1720arg is ISpanFormattable spanFormattableArg && 2901else if (value is ISpanFormattable) 2904if (((ISpanFormattable)value).TryFormat(destination, out int charsWritten, default, _provider)) // constrained call avoiding boxing for value types 2972else if (value is ISpanFormattable) 2975if (((ISpanFormattable)value).TryFormat(destination, out int charsWritten, format, _provider)) // constrained call avoiding boxing for value types
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (7)
464if (value is ISpanFormattable) 522if (value is ISpanFormattable) 684Debug.Assert(value is ISpanFormattable); 687return ((ISpanFormattable)value).TryFormat(utf16, out int charsWritten, format, _provider) ? 694Debug.Assert(value is ISpanFormattable); 710if (((ISpanFormattable)value).TryFormat(array, out charsWritten, format, thisRef._provider)) 741Debug.Assert(value is ISpanFormattable);
src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
215arg is ISpanFormattable spanFormattableArg &&
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
269bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
System.Private.Uri (1)
System\Uri.cs (1)
1691bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
System.Private.Windows.Core (2)
System\Text\ValueStringBuilder.cs (2)
242public void AppendFormatted<TFormattable>(TFormattable value) where TFormattable : ISpanFormattable 247while (!((ISpanFormattable)value).TryFormat(_chars[_pos..], out charsWritten, format: default, provider: default))
System.Private.Xml (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
8internal void AppendSpanFormattable<T>(T value, string? format = null, IFormatProvider? provider = null) where T : ISpanFormattable
System.Reflection.Metadata (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
8internal void AppendSpanFormattable<T>(T value, string? format = null, IFormatProvider? provider = null) where T : ISpanFormattable
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
337[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ISpanFormattable))]
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
2199/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" />
System.Web.HttpUtility (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.AppendSpanFormattable.cs (1)
8internal void AppendSpanFormattable<T>(T value, string? format = null, IFormatProvider? provider = null) where T : ISpanFormattable