G
Guest
I try to write a class derived form CollectionBase and hide the methods:
Clear() and RemoveAt().
In the documentation the methods are described as overridable (virtual). But
any try like following fails with compiler error:
public override void Clear()
{}
Error: cannot override inherited member .... because its not marked virtual,
abstract or override.
Isn't this possible, or what am I doing wrong?
Clear() and RemoveAt().
In the documentation the methods are described as overridable (virtual). But
any try like following fails with compiler error:
public override void Clear()
{}
Error: cannot override inherited member .... because its not marked virtual,
abstract or override.
Isn't this possible, or what am I doing wrong?