问题描述
有没有人对此有所了解:
..net文档说CollectionBase.RemoveAt(int index)是
虚方法,但是当我尝试覆盖它时,我得到编译器错误:
不能覆盖继承的成员
''System.Collections.CollectionBase.RemoveAt(int )''因为它不是
标记为虚拟,抽象或覆盖
这是某种bug还是什么?
如果这种方法不是真的虚拟那么这个类的重点是什么?b $ b是抽象的?我可以覆盖删除方法,但不能删除。
hi,
does anyone know something about this:
..net documentation says that CollectionBase.RemoveAt(int index) is
virtual method, but when i try to override it i get compiler error:
cannot override inherited member
''System.Collections.CollectionBase.RemoveAt(int)'' because it is not
marked virtual, abstract, or override
is this some kind of bug or what?
if this method is not really virtual so what''s the point of this class
being abstract? i can override Remove method but cant RemoveAt.
这篇关于CollectionBase BUG ???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!