ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

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

Last modified: 11 February 2024

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.