Suppose you have the following inheritance chain:
class A : IDisposable
{
public void Dispose()...
protected virtual void Dispose(bool disposing)...
}
class B : A
{
// Virtual or Override for B?
}
class C : B
{
protected override void Dispose(bool disposing)...
}
If A, B, and C each have their own private IDisposable resources, how should B declare Dispose(bool)
?