Release resources in .Net C#
Posted
by zaidwaqi
on Stack Overflow
See other posts from Stack Overflow
or by zaidwaqi
Published on 2010-05-04T09:13:41Z
Indexed on
2010/05/04
9:18 UTC
Read the original article
Hit count: 173
Hi,
I'm new to C# and .NET, ,and have been reading around about it.
I need to know why and when do I need to release resources? Doesn't the garbage collector take care of everything? When do I need to implement IDisposable, and how is it different from destructor in C++?
Also, if my program is rather small i.e. a screensaver, do I need to care about releasing resources?
Thanks.
© Stack Overflow or respective owner