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