Can\'t i overload List\'s Add method ?
class ListDemo:List
{
public override T Add(T value)
{
return base.Add(valu
If you want a collection in which you'd want to override your Add/Insert or Indexer then you could create your own collection that would inherit from:
Collection
and override the following methods:
InsertItem();
SetItem();
the first one is called by Add() and Insert(), while the second is called by this[]
The List Add can not be overriden since the collection is made for perfomance, thus the overriding possibility is intentionally removed