Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I implement IDisposable for a User Control?

Tags:

c#

.net

I am creating a .NET User Control. Do I need to implement the IDisposable interface for my User Control?

like image 420
G-Man Avatar asked Feb 22 '10 16:02

G-Man


1 Answers

Control already implements IDisposable

You only need to override the implementation if you need to dispose some unmanaged resources.

So the simple answer: no, probably not.

like image 64
John Gietzen Avatar answered Sep 26 '22 00:09

John Gietzen