We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ValueStringBuilder
1 parent 5bcabbe commit 5daa0c1Copy full SHA for 5daa0c1
sdk/src/Core/ThirdParty/RuntimeBackports/ValueStringBuilder.cs
@@ -12,6 +12,7 @@
12
13
namespace ThirdParty.RuntimeBackports
14
{
15
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
16
#pragma warning disable CA1815
17
internal ref struct ValueStringBuilder
18
#pragma warning restore CA1815
@@ -45,6 +46,9 @@ public int Length
45
46
}
47
48
49
+ // ToString() has side effects, so we don't want to call it from the debugger display.
50
+ private string DebuggerDisplay => AsSpan().ToString();
51
+
52
public int Capacity => _chars.Length;
53
54
public void EnsureCapacity(int capacity)
0 commit comments