Code Snippet
public class CardCollection : List<int>
{
UserControl control;
public override int this[int index]
{
set
{
this[index] = value;
// Code to update control
}
}
public CardCollection(UserControl control)
{
this.control = control;
}
}
Error 1 'UserControls.CtrlSeat.CardCollection.this[int].set': cannot override inherited member 'System.Collections.Generic.List<int>.this[int].set' because it is not marked virtual, abstract, or override D:\My Documents\Visual Studio 2008\Projects\FinalTable\UserControls\CtrlSeat.cs 42 17 UserControls