ICollection<T> IEnumerable IEnumerable<T>, GetEnumerator ().
ICollection<T> IEnumerable<T>, , Enumerable. LINQ, , .
IList<T>
IList<T> , . IEnumerable, IEnumerable<T> ICollection<T> IList. , IList<T>, . 25.11. . , Insert () RemoveAt () NotSupportedException.
25.11. , IList<T>
int IndexOf( item)
void Insert(int index,
T item)
void RemoveAt(int index)
item . item , -1 item index
, index
, IList<T>
this[int index] { get; set; }
index.
IDictionary<TKey, TValue>
IDictionary<TKey, TValue> , . , , "-". IDictionary<TKey, TValue> IEnumerable, IEnumerable<KeyValuePair<TKey, TValue>> ICollection<KeyValuePair<TKey, TValue>> IDictionary. , IDictionary<TKey, TValue>, . 25.12. ArgumentNullException .
25.12. , IDictionaryCTKey, TValue>
void Add(TKey key, TValue value\
bool Contains(TKey key)
bool Remove(TKey key)
bool TryGetValue(TKey key, out TValue value)
-, key value. ArgumentException, key true, key , false , key
|
|
key value. true, false. key , value ,
, IDictionary<TKey, TValue> .
ICollection Keys<TKey> { get; } ICollection Values<TValue> { get; }