I know this question has probably been answered before but I couldn't for the life of me find a question with this answer already gvien.
I have 2 classes that I call dispose on 1 of them, I was just wondering do I have to explicitly call dispose on class B inside of A's dispose? Or would it automatically do it due to it being a base class of A already?
The reason it concerns me so much is Resharper (A vs extension) constantly gives me a message directed to it.
'A.Dispose()' hides inherited member 'B.Dispose()', Use the new keyword if hiding was intended. The keyword 'new' is required on 'Dispose' because it hides method 'void App.B.Dispose()'
class A : B, IDisposable
{
public void Dispose() {
}
}
class B : IDisposable
{
public void Dispose() {
}
}