Discovered while investigating "A generic GDI+ exception occurred" and other werid memory related issues. Can anyone figure out why this code would be written? To me it looks like someone was bent on either increasing their number of lines committed or on preventing the Library from properly cleaning up of all resources in this class and its derivations.
public class MyImplementation : SomeLibraryClass
{
// some vars
~MyImplementation() { this.Dispose(); }
new public void Dispose()
{
base.Dispose();
}
new public void Dispose(bool disposing)
{
base.Dispose(disposing);
}
}