Skip to content

Commit a439bdb

Browse files
committed
fix debug disposal
1 parent 9986301 commit a439bdb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/PetroglyphTools/PG.StarWarsGame.Engine/Utilities/ValueStringBuilder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace PG.StarWarsGame.Engine.Utilities;
88

9+
[DebuggerDisplay("{DebuggerDisplay,nq}")]
910
internal ref struct ValueStringBuilder
1011
{
1112
private char[]? _arrayToReturnToPool;
@@ -82,6 +83,9 @@ public ref char this[int index]
8283
return ref _chars[index];
8384
}
8485
}
86+
87+
[DebuggerBrowsable((DebuggerBrowsableState.Never))]
88+
private string DebuggerDisplay => AsSpan().ToString();
8589

8690
public override string ToString()
8791
{

0 commit comments

Comments
 (0)