B
Ben Voigt [C++ MVP]
Anyone know a direct translation for this C# code? I know I can make a new
function, of course, but that's clumsy.
assume (o is IDisposable)
MethodInvoker d = o.Dispose;
I tried taking the address of the destructor, that either tries to give me
protected void Dispose(bool) with an error (it's the wrong argument list) or
tells me {dtor} is not a member of IDisposable.
This is all on VS2005 SP1.
Automatic implementation of IDisposable screwed up this one!
function, of course, but that's clumsy.
assume (o is IDisposable)
MethodInvoker d = o.Dispose;
I tried taking the address of the destructor, that either tries to give me
protected void Dispose(bool) with an error (it's the wrong argument list) or
tells me {dtor} is not a member of IDisposable.
This is all on VS2005 SP1.
Automatic implementation of IDisposable screwed up this one!