2 writes to _provider
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
2833
_provider
= null;
2846
_provider
= provider;
9 references to _provider
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (9)
2815
/// <summary>Whether <see cref="
_provider
"/> provides an ICustomFormatter.</summary>
2897
if (((ISpanFormattable)value).TryFormat(destination, out int charsWritten, default,
_provider
)) // constrained call avoiding boxing for value types
2917
_stringBuilder.Append(((IFormattable)value).ToString(format: null,
_provider
)); // constrained call avoiding boxing for value types
2961
if (((ISpanFormattable)value).TryFormat(destination, out int charsWritten, format,
_provider
)) // constrained call avoiding boxing for value types
2981
_stringBuilder.Append(((IFormattable)value).ToString(format,
_provider
)); // constrained call avoiding boxing for value types
3035
var handler = new DefaultInterpolatedStringHandler(0, 0,
_provider
, stackalloc char[string.StackallocCharBufferSizeLimit]);
3136
Debug.Assert(
_provider
!= null);
3138
ICustomFormatter? formatter = (ICustomFormatter?)
_provider
.GetFormat(typeof(ICustomFormatter));
3143
_stringBuilder.Append(formatter.Format(format, value,
_provider
));