Skip to content

Commit

Permalink
Address CA1816: Call GC.SuppressFinalize correctly
Browse files Browse the repository at this point in the history
Not sure the potential issue actually applies to .Net Core. But this silences the warning.
  • Loading branch information
tmittet committed Nov 20, 2023
1 parent 1c69307 commit f90c1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HidApi.Net/Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace HidApi;
/// Represents a HID device.
/// </summary>
/// <remarks>Call Dispose to free all unmanaged resources.</remarks>
public class Device : IDisposable
public sealed class Device : IDisposable
{
private readonly DeviceSafeHandle handle;

Expand Down

0 comments on commit f90c1ba

Please sign in to comment.