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 98ffa0f commit 290906aCopy full SHA for 290906a
src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs
@@ -57,15 +57,7 @@ public void AddRef()
57
58
[Conditional("DEBUG")]
59
[MemberNotNull(nameof(Array))]
60
- private void CheckDisposed()
61
- {
62
-#pragma warning disable CA1513
63
- if (this.Array == null)
64
65
- throw new ObjectDisposedException("SharedArrayPoolBuffer");
66
- }
67
-#pragma warning restore CA1513
68
+ private void CheckDisposed() => ObjectDisposedException.ThrowIf(this.Array == null, this.Array);
69
70
private sealed class LifetimeGuard : RefCountedMemoryLifetimeGuard
71
{
0 commit comments