SuppressFinalize on Class with no finalizer

G

Guest

We are using FxCOP in our coding process and implementing the Dispose pattern
in some of our classes. Our resources are not unmanaged, so Finalizers are
not necessary.

Is there any harm in calling SuppressFinalize and passing an object that
does not implement a finalizer?
 
M

Mattias Sjögren

Is there any harm in calling SuppressFinalize and passing an object that
does not implement a finalizer?

No, but there's also no point in doing it. So why are you doing that?


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top