If my class has NO destructor, then will GC call Finalize () on it ?
Posted
by isthatacode
on Stack Overflow
See other posts from Stack Overflow
or by isthatacode
Published on 2010-04-15T11:53:18Z
Indexed on
2010/04/15
12:13 UTC
Read the original article
Hit count: 240
If my class has NO destructor, an it goes out of scope. GC runs at certain time, now will it simply reclaim memory from my class OR will it call its destructor or Finalize () on it ?
And does the .net framework class like SQLConnection implement a destructor? I saw it has a Dispose () implementation but didn't see the destructor using "Go to definition".
© Stack Overflow or respective owner