3 implementations of ICustomFormatter
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlFormattableString.cs (1)
80private sealed class EncodingFormatProvider : IFormatProvider, ICustomFormatter
NuGet.Versioning (2)
VersionFormatter.cs (1)
13public class VersionFormatter : IFormatProvider, ICustomFormatter
VersionRangeFormatter.cs (1)
12public class VersionRangeFormatter : IFormatProvider, ICustomFormatter
32 references to ICustomFormatter
Microsoft.AspNetCore.Html.Abstractions (4)
HtmlFormattableString.cs (4)
122var customFormatter = (ICustomFormatter?)_formatProvider.GetFormat(typeof(ICustomFormatter)); 160if (formatType == typeof(ICustomFormatter))
mscorlib (1)
parent\ref\mscorlib.cs (1)
293[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ICustomFormatter))]
netstandard (1)
netstandard.cs (1)
868[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ICustomFormatter))]
NuGet.Versioning (5)
SemanticVersionBase.cs (2)
65var formatter = formatProvider.GetFormat(GetType()) as ICustomFormatter;
VersionFormatter.cs (1)
60if (formatType == typeof(ICustomFormatter)
VersionRange.cs (2)
195var formatter = formatProvider.GetFormat(GetType()) as ICustomFormatter;
System.Private.CoreLib (20)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (3)
6412ICustomFormatter? formatter = (ICustomFormatter?)_provider.GetFormat(typeof(ICustomFormatter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (5)
526Debug.Assert(provider is not CultureInfo || provider.GetFormat(typeof(ICustomFormatter)) is null, "Expected CultureInfo to not provide a custom formatter"); 529provider.GetFormat(typeof(ICustomFormatter)) != null; 546ICustomFormatter? formatter = (ICustomFormatter?)_provider.GetFormat(typeof(ICustomFormatter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (6)
1579ICustomFormatter? cf = (ICustomFormatter?)provider?.GetFormat(typeof(ICustomFormatter)); 3284ICustomFormatter? formatter = (ICustomFormatter?)_provider.GetFormat(typeof(ICustomFormatter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (3)
666ICustomFormatter? formatter = (ICustomFormatter?)_provider.GetFormat(typeof(ICustomFormatter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (3)
24ICustomFormatter? cf = (ICustomFormatter?)provider?.GetFormat(typeof(ICustomFormatter));
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net12.0\System.Runtime.Forwards.cs (1)
272[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ICustomFormatter))]