6 implementations of GetFormat
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlFormattableString.cs (1)
158
public object?
GetFormat
(Type? formatType)
NuGet.Versioning (2)
VersionFormatter.cs (1)
58
public object?
GetFormat
(Type? formatType)
VersionRangeFormatter.cs (1)
52
public object?
GetFormat
(Type? formatType)
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
659
public virtual object?
GetFormat
(Type? formatType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
325
public object?
GetFormat
(Type? formatType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
797
public object?
GetFormat
(Type? formatType)
13 references to GetFormat
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlFormattableString.cs (1)
122
var customFormatter = (ICustomFormatter?)_formatProvider.
GetFormat
(typeof(ICustomFormatter));
NuGet.Versioning (2)
SemanticVersionBase.cs (1)
65
var formatter = formatProvider.
GetFormat
(GetType()) as ICustomFormatter;
VersionRange.cs (1)
195
var formatter = formatProvider.
GetFormat
(GetType()) as ICustomFormatter;
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
320
provider.
GetFormat
(typeof(DateTimeFormatInfo)) as DateTimeFormatInfo ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
244
provider.
GetFormat
(typeof(NumberFormatInfo)) as NumberFormatInfo ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
6412
ICustomFormatter? formatter = (ICustomFormatter?)_provider.
GetFormat
(typeof(ICustomFormatter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (3)
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 (2)
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 (1)
666
ICustomFormatter? formatter = (ICustomFormatter?)_provider.
GetFormat
(typeof(ICustomFormatter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
24
ICustomFormatter? cf = (ICustomFormatter?)provider?.
GetFormat
(typeof(ICustomFormatter));