S3234 "GC.SuppressFinalize" should not be invoked for types without destructors

Must-share information (formatted with Markdown):
SonarQube 17.0

I am trying to understand why this rule is applicable for “sealed” classes and not for other classes?
" This rule raises an issue when GC.SuppressFinalize is called for objects of sealed types without a finalizer."

Hi @Halligugu.

Welcome to our community!

The rule raises an issue only for sealed types without a finalizer, because non sealed types can be inherited and the child class can have a finalizer.