1 instantiation of CompositeFormat
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
85return new CompositeFormat(format, segments.ToArray());
62 references to CompositeFormat
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactor.cs (2)
22private readonly CompositeFormat _format; 59_format = CompositeFormat.Parse(opt.Value.RedactionFormat);
Microsoft.Extensions.Logging.Abstractions (3)
LogValuesFormatter.cs (3)
21private readonly CompositeFormat _format; 48CompositeFormat.Parse(format); 79CompositeFormat.Parse(vsb.ToString());
Microsoft.Extensions.Telemetry (9)
Latency\Internal\LatencyConsoleExporter.cs (9)
21private static readonly CompositeFormat _title = CompositeFormat.Parse("Latency sample #{0}: {1}ms, {2} checkpoints, {3} tags, {4} measures" + Environment.NewLine); 22private static readonly Func<int, CompositeFormat> _rows = Memoize.Function((int nameColumnWidth) => CompositeFormat.Parse($" {{0,-{nameColumnWidth}}} | {{1}}" + Environment.NewLine)); 68var fmt = StartTable(sb, "Checkpoint", "Value (ms)", nameColumnWidth, ref needBlankLine); 84var fmt = StartTable(sb, "Tag", "Value", nameColumnWidth, ref needBlankLine); 100var fmt = StartTable(sb, "Measure", "Value", nameColumnWidth, ref needBlankLine); 118private static CompositeFormat StartTable(StringBuilder sb, string nameHeader, string valueHeader, int nameColumnWidth, ref bool needBlankLine) 133var 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> 5670public 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> 5692public 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> 5716public 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> 5736public 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> 5755public static bool TryWrite(this Span<char> destination, IFormatProvider? provider, CompositeFormat format, out int charsWritten, params ReadOnlySpan<object?> args) 5768private 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> 558public 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> 578public 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> 600public 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> 618public 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> 635public static string Format(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args) 648private 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> 73public 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> 1802public StringBuilder AppendFormat<TArg0>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0) 1816/// <param name="format">A <see cref="CompositeFormat"/>.</param> 1822public StringBuilder AppendFormat<TArg0, TArg1>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1) 1837/// <param name="format">A <see cref="CompositeFormat"/>.</param> 1844public StringBuilder AppendFormat<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2) 1856/// <param name="format">A <see cref="CompositeFormat"/>.</param> 1862public StringBuilder AppendFormat(IFormatProvider? provider, CompositeFormat format, params object?[] args) 1874/// <param name="format">A <see cref="CompositeFormat"/>.</param> 1879public StringBuilder AppendFormat(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args) 1892private 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))]