Lines Matching defs:key
44 public static bool containsKey( this IDictionary map, object key )
46 return map.Contains( key );
50 public static object get( this IDictionary map, object key )
52 return map[key];
55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key )
58 if ( map.TryGetValue( key, out value ) )
68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key )
71 if ( map.TryGetValue( key, out value ) )
80 public static TValue get<TKey, TValue>( this SortedList<TKey, TValue> map, TKey key )
83 if ( map.TryGetValue( key, out value ) )
93 public static void put( this IDictionary map, object key, object value )
95 map[key] = value;
99 public static void put<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key, TValue value )
101 map[key] = value;
105 public static void put<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key, TValue value )
107 map[key] = value;