We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e5231d commit bcc10afCopy full SHA for bcc10af
UnmanagedStringPool.cs
@@ -371,7 +371,11 @@ internal void FreeString(uint id)
371
/// Create an empty PooledString in this pool. Requires a pool so we know where to add if insertion occurs
372
/// </summary>
373
[MethodImpl(MethodImplOptions.AggressiveInlining)]
374
- internal PooledString CreateEmptyString() => new(this, EmptyStringAllocationId);
+ internal PooledString CreateEmptyString()
375
+ {
376
+ ObjectDisposedException.ThrowIf(IsDisposed, typeof(UnmanagedStringPool));
377
+ return new(this, EmptyStringAllocationId);
378
+ }
379
380
#endregion
381
0 commit comments