Destructors in vb .net 2005
There is one class SplitFile in c# like...
public class SplitFile : IEnumerable, IDisposable
{
~SplitFile()
{
Dispose(false);
}
}
how to write this in vb .net 2005
Thanks
Javfarary
[252 byte] By [
Javfarary] at [2007-11-11 10:04:53]

# 1 Re: Destructors in vb .net 2005
Well, the first question I have is why you're calling Dispose in a destructor... Usually, you call Dispose explicitly from outside the object. But regardless...
May I suggest that you download the Lutz reflector:
http://www.aisto.com/roeder/dotnet/
Just compile the above code, then point the reflector to the generated assembly. It can translate the code to VB.net for you.