Is there a particular reason to why the generic counterparts of IList
and ICollection
do not have the same set of methods and properties? They seem to have moved them around.
Ex.
IList<T>
has
int IndexOf(T item);
void Insert(int index, T item);
void RemoveAt(int index);
T this[int index] { get; set; }
But IList
has
int Add(object value);
void Clear();
bool Contains(object value);
int IndexOf(object value);
void Insert(int index, object value);
void Remove(object value);
void RemoveAt(int index);
bool IsFixedSize { get; }
bool IsReadOnly { get; }
object this[int index] { get; set; }