Lines Matching refs:map
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;
111 public static HashSet<object> keySet( this IDictionary map )
113 return new HashSet<object>( map.Keys.Cast<object>() );
117 public static HashSet<TKey> keySet<TKey, TValue>( this IDictionary<TKey, TValue> map )
119 return new HashSet<TKey>( map.Keys );
124 public static HashSet<TKey> keySet<TKey, TValue>( this Dictionary<TKey, TValue> map )
126 return new HashSet<TKey>( map.Keys );
130 public static HashSet<object> keySet<TKey, TValue>( this SortedList<TKey, TValue> map )
132 return new HashSet<object>( map.Keys.Cast<object>() );