using System;
using System.Runtime.InteropServices;
-namespace System.Collections.Generic {
- [CLSCompliant(false)]
- [ComVisible(false)]
- public interface IDictionary<K,V> : ICollection<KeyValuePair<K,V>> {
- void Add (K key, V value);
- bool ContainsKey (K key);
- bool Remove (K key);
- bool IsFixedSize { get; }
- V this[K key] { get; set; }
- ICollection<KeyValuePair<K,V>> Keys { get; }
- ICollection<KeyValuePair<K,V>> Values { get; }
+namespace System.Collections.Generic
+{
+ public interface IDictionary<TKey,TValue> : ICollection<KeyValuePair<TKey,TValue>>
+ {
+
+ void Add (TKey key, TValue value);
+ bool ContainsKey (TKey key);
+ bool Remove (TKey key);
+ bool TryGetValue (TKey key, out TValue value);
+ TValue this[TKey key] { get; set; }
+ ICollection<TKey> Keys { get; }
+ ICollection<TValue> Values { get; }
}
}
#endif