F
Frank Oquendo
I see a lot of this:
public void Dispose()
{
this.Dispose(true);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
yada.yada();
GC.SupressFinalize(this);
}
}
My question is what's with the two implementations? Should you do this
all the time or only some of the time? If only some of the time, when?
What happens if disposing is false? Do you call identical code
elsewhere?
While we're here, when's the right time to code a Finalize method?
--
There are 10 kinds of people. Those who understand binary and those who
don't.
http://code.acadx.com
(Pull the pin to reply)
public void Dispose()
{
this.Dispose(true);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
yada.yada();
GC.SupressFinalize(this);
}
}
My question is what's with the two implementations? Should you do this
all the time or only some of the time? If only some of the time, when?
What happens if disposing is false? Do you call identical code
elsewhere?
While we're here, when's the right time to code a Finalize method?
--
There are 10 kinds of people. Those who understand binary and those who
don't.
http://code.acadx.com
(Pull the pin to reply)