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.
1 parent f158abe commit 88c0dfdCopy full SHA for 88c0dfd
Microsoft.Toolkit.HighPerformance/Buffers/ArrayPoolBufferWriter{T}.cs
@@ -254,7 +254,9 @@ public Span<T> GetSpan(int sizeHint = 0)
254
[MethodImpl(MethodImplOptions.AggressiveInlining)]
255
private void CheckBufferAndEnsureCapacity(int sizeHint)
256
{
257
- if (this.array is null)
+ T[]? array = this.array;
258
+
259
+ if (array is null)
260
261
ThrowObjectDisposedException();
262
}
0 commit comments