C
cctv.star
I have a base class that implements IDisposable.
Then I have a derived class, in which I write the following:
public override void Dispose() {
}
... only to get an error: cannot override inherited member ...Dispose()
because it is not marked virtual, abstract, or override. Why??? How a
function, implementing an interface, not be virtual?
And how can I do what I want?
Then I have a derived class, in which I write the following:
public override void Dispose() {
}
... only to get an error: cannot override inherited member ...Dispose()
because it is not marked virtual, abstract, or override. Why??? How a
function, implementing an interface, not be virtual?
And how can I do what I want?