diff --git a/src/ImageSharp/Common/Helpers/DebugGuard.cs b/src/ImageSharp/Common/Helpers/DebugGuard.cs index 43622066c..23b712c52 100644 --- a/src/ImageSharp/Common/Helpers/DebugGuard.cs +++ b/src/ImageSharp/Common/Helpers/DebugGuard.cs @@ -27,7 +27,7 @@ namespace SixLabors } /// - /// Verifies whether a specific condition is met, throwing an exception if it's false. + /// Verifies whether a condition (indicating disposed state) is met, throwing an ObjectDisposedException if it's false. /// /// Whether the object is disposed. /// The name of the object. diff --git a/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs b/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs index 5027d94b4..21673215a 100644 --- a/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs +++ b/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs @@ -59,7 +59,7 @@ namespace SixLabors.ImageSharp.Memory.Internals } } - private class LifetimeGuard : RefCountedLifetimeGuard + private sealed class LifetimeGuard : RefCountedLifetimeGuard { private byte[] array;