2 instantiations of FormatParam
System.Console (2)
27 references to FormatParam
System.Console (27)
System\TermInfo.cs (27)
18private static Stack<FormatParam>? t_cachedStack;
22private static FormatParam[]? t_cachedOneElementArgsArray;
26private static FormatParam[]? t_cachedTwoElementArgsArray;
32public static string Evaluate(string format, FormatParam arg)
34FormatParam[] args = t_cachedOneElementArgsArray ??= new FormatParam[1];
46public static string Evaluate(string format, FormatParam arg1, FormatParam arg2)
48FormatParam[] args = t_cachedTwoElementArgsArray ??= new FormatParam[2];
60public static string Evaluate(string format, params FormatParam[] args)
66Stack<FormatParam>? stack = t_cachedStack;
69t_cachedStack = stack = new Stack<FormatParam>();
79FormatParam[]? dynamicVars = null, staticVars = null;
101string format, ref int pos, FormatParam[] args, Stack<FormatParam> stack,
102ref FormatParam[]? dynamicVars, ref FormatParam[]? staticVars)
215FormatParam[] targetVars = GetDynamicOrStaticVariables(format[pos], ref dynamicVars, ref staticVars, out setIndex);
221FormatParam[] sourceVars = GetDynamicOrStaticVariables(format[pos], ref dynamicVars, ref staticVars, out getIndex);
398private static FormatParam[] GetDynamicOrStaticVariables(
399char c, ref FormatParam[]? dynamicVars, ref FormatParam[]? staticVars, out int index)
404return staticVars ??= new FormatParam[26]; // one slot for each letter of alphabet
409return dynamicVars ??= new FormatParam[26]; // one slot for each letter of alphabet
444public static implicit operator FormatParam(int value)
450public static implicit operator FormatParam(string? value)