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