JetBrains Rider 2020.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 JetBrains Rider flags such call as redundant.

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

Last modified: 08 May 2020