IList
と の一般的な対応物が同じメソッドとプロパティのセットをICollection
持たない特定の理由はありますか? 彼らは彼らを動かしたようです。
元。
IList<T>
もっている
int IndexOf(T item);
void Insert(int index, T item);
void RemoveAt(int index);
T this[int index] { get; set; }
しかしIList
、
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; }