ReSharper 2022.1 Help

Code Inspection: 'GC.SuppressFinalize' is invoked for type without destructor

The GC.SuppressFinalize() system method is designed to prevent calling the finalizer on the specified object. If an object does not have a destructor, invoking SuppressFinalize on this object has no effect and ReSharper flags such call as redundant.

To learn more how the destructor works, see Object.Finalize Method.

Last modified: 21 July 2022