2 writes to _provider
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
2965_provider = null; 2978_provider = provider;
9 references to _provider
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (9)
2947/// <summary>Whether <see cref="_provider"/> provides an ICustomFormatter.</summary> 3036if (((ISpanFormattable)value).TryFormat(destination, out int charsWritten, default, _provider)) // constrained call avoiding boxing for value types 3056_stringBuilder.Append(((IFormattable)value).ToString(format: null, _provider)); // constrained call avoiding boxing for value types 3107if (((ISpanFormattable)value).TryFormat(destination, out int charsWritten, format, _provider)) // constrained call avoiding boxing for value types 3127_stringBuilder.Append(((IFormattable)value).ToString(format, _provider)); // constrained call avoiding boxing for value types 3181var handler = new DefaultInterpolatedStringHandler(0, 0, _provider, stackalloc char[string.StackallocCharBufferSizeLimit]); 3282Debug.Assert(_provider != null); 3284ICustomFormatter? formatter = (ICustomFormatter?)_provider.GetFormat(typeof(ICustomFormatter)); 3289_stringBuilder.Append(formatter.Format(format, value, _provider));