| ||||||
| 5/16 |
| 2007/4/18-21 [Computer/SW/Languages/Java] UID:46351 Activity:nil |
4/18 In C#, what's the opposite function for class constructors or static
constructors? I can't find how to write a class destructor or static
destructor. Does such a thing exist? If not, how does my class clean
up after itself? Thanks.
\_ Um, the process exits? And it's garbage collected?
\_ I'm not trying to free memory. I'm trying to close some
connection to a remote machine.
\_ Unfortunately there isn't a good way in C# last I checked to
manage lifetime. It's one of its deficiencies. |
| 5/16 |
|