1 instantiation of CompositeFormat
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
85
return new
CompositeFormat
(format, segments.ToArray());
62 references to CompositeFormat
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactor.cs (2)
22
private readonly
CompositeFormat
_format;
59
_format =
CompositeFormat
.Parse(opt.Value.RedactionFormat);
Microsoft.Extensions.Logging.Abstractions (3)
LogValuesFormatter.cs (3)
21
private readonly
CompositeFormat
_format;
48
CompositeFormat
.Parse(format);
79
CompositeFormat
.Parse(vsb.ToString());
Microsoft.Extensions.Telemetry (9)
Latency\Internal\LatencyConsoleExporter.cs (9)
21
private static readonly
CompositeFormat
_title =
CompositeFormat
.Parse("Latency sample #{0}: {1}ms, {2} checkpoints, {3} tags, {4} measures" + Environment.NewLine);
22
private static readonly Func<int,
CompositeFormat
> _rows = Memoize.Function((int nameColumnWidth) =>
CompositeFormat
.Parse($" {{0,-{nameColumnWidth}}} | {{1}}" + Environment.NewLine));
68
var
fmt = StartTable(sb, "Checkpoint", "Value (ms)", nameColumnWidth, ref needBlankLine);
84
var
fmt = StartTable(sb, "Tag", "Value", nameColumnWidth, ref needBlankLine);
100
var
fmt = StartTable(sb, "Measure", "Value", nameColumnWidth, ref needBlankLine);
118
private static
CompositeFormat
StartTable(StringBuilder sb, string nameHeader, string valueHeader, int nameColumnWidth, ref bool needBlankLine)
133
var
fmt = _rows(nameColumnWidth);
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (16)
5658
/// Writes the <see cref="
CompositeFormat
"/> string to the character span, substituting the format item or items
5664
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
5670
public static bool TryWrite<TArg0>(this Span<char> destination, IFormatProvider? provider,
CompositeFormat
format, out int charsWritten, TArg0 arg0)
5678
/// Writes the <see cref="
CompositeFormat
"/> string to the character span, substituting the format item or items
5685
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
5692
public static bool TryWrite<TArg0, TArg1>(this Span<char> destination, IFormatProvider? provider,
CompositeFormat
format, out int charsWritten, TArg0 arg0, TArg1 arg1)
5700
/// Writes the <see cref="
CompositeFormat
"/> string to the character span, substituting the format item or items
5708
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
5716
public static bool TryWrite<TArg0, TArg1, TArg2>(this Span<char> destination, IFormatProvider? provider,
CompositeFormat
format, out int charsWritten, TArg0 arg0, TArg1 arg1, TArg2 arg2)
5724
/// Writes the <see cref="
CompositeFormat
"/> string to the character span, substituting the format item or items
5729
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
5736
public static bool TryWrite(this Span<char> destination, IFormatProvider? provider,
CompositeFormat
format, out int charsWritten, params object?[] args)
5744
/// Writes the <see cref="
CompositeFormat
"/> string to the character span, substituting the format item or items
5749
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
5755
public static bool TryWrite(this Span<char> destination, IFormatProvider? provider,
CompositeFormat
format, out int charsWritten, params ReadOnlySpan<object?> args)
5768
private static bool TryWrite<TArg0, TArg1, TArg2>(Span<char> destination, IFormatProvider? provider,
CompositeFormat
format, out int charsWritten, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (16)
548
/// Replaces the format item or items in a <see cref="
CompositeFormat
"/> with the string representation of the corresponding objects.
553
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
558
public static string Format<TArg0>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0)
566
/// Replaces the format item or items in a <see cref="
CompositeFormat
"/> with the string representation of the corresponding objects.
572
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
578
public static string Format<TArg0, TArg1>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0, TArg1 arg1)
586
/// Replaces the format item or items in a <see cref="
CompositeFormat
"/> with the string representation of the corresponding objects.
593
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
600
public static string Format<TArg0, TArg1, TArg2>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0, TArg1 arg1, TArg2 arg2)
608
/// Replaces the format item or items in a <see cref="
CompositeFormat
"/> with the string representation of the corresponding objects.
612
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
618
public static string Format(IFormatProvider? provider,
CompositeFormat
format, params object?[] args)
626
/// Replaces the format item or items in a <see cref="
CompositeFormat
"/> with the string representation of the corresponding objects.
630
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
635
public static string Format(IFormatProvider? provider,
CompositeFormat
format, params ReadOnlySpan<object?> args)
648
private static string Format<TArg0, TArg1, TArg2>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args)
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (4)
70
/// <returns>The parsed <see cref="
CompositeFormat
"/>.</returns>
73
public static
CompositeFormat
Parse([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format)
88
/// <summary>Gets the original composite format string used to create this <see cref="
CompositeFormat
"/> instance.</summary>
91
/// <summary>Gets the minimum number of arguments that must be passed to a formatting operation using this <see cref="
CompositeFormat
"/>.</summary>
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (11)
1797
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
1802
public StringBuilder AppendFormat<TArg0>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0)
1816
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
1822
public StringBuilder AppendFormat<TArg0, TArg1>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0, TArg1 arg1)
1837
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
1844
public StringBuilder AppendFormat<TArg0, TArg1, TArg2>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0, TArg1 arg1, TArg2 arg2)
1856
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
1862
public StringBuilder AppendFormat(IFormatProvider? provider,
CompositeFormat
format, params object?[] args)
1874
/// <param name="format">A <see cref="
CompositeFormat
"/>.</param>
1879
public StringBuilder AppendFormat(IFormatProvider? provider,
CompositeFormat
format, params ReadOnlySpan<object?> args)
1892
private StringBuilder AppendFormat<TArg0, TArg1, TArg2>(IFormatProvider? provider,
CompositeFormat
format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
778
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Text.
CompositeFormat
))]