|
| Hashtable (int initialCapacity) |
| Initializes a new instance of the Hashtable<Key, Data> class. More...
|
|
void | Add (TKey key, TData data) |
| Adds an item to this hashtable. More...
|
|
void | UnsafeSet (TKey key, TData value) |
| Sets the value of the item at the specified key location. This is only guaranteed to work correctly if no other thread is modifying the same key. More...
|
|
bool | TryGet (TKey key, out TData data) |
| Tries to get the data at the specified key location. More...
|
|
void | Remove (TKey key) |
| Removes the data at the specified key location. More...
|
|
IEnumerator< KeyValuePair< TKey, TData > > | GetEnumerator () |
| Returns an enumerator that iterates through the collection. More...
|
|
Definition at line 89 of file Hashtable.cs.
Initializes a new instance of the Hashtable<Key, Data> class.
- Parameters
-
initialCapacity | The initial capacity of the table. |
Definition at line 110 of file Hashtable.cs.
Adds an item to this hashtable.
- Parameters
-
key | The key at which to add the item. |
data | The data to add. |
Definition at line 123 of file Hashtable.cs.
Returns an enumerator that iterates through the collection.
- Returns
- A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
Definition at line 326 of file Hashtable.cs.
Removes the data at the specified key location.
- Parameters
-
Definition at line 292 of file Hashtable.cs.
Tries to get the data at the specified key location.
- Parameters
-
key | The key to search for. |
data | The data at the key location. |
- Returns
true
if the data was found; else false
.
Definition at line 273 of file Hashtable.cs.
Sets the value of the item at the specified key location. This is only guaranteed to work correctly if no other thread is modifying the same key.
- Parameters
-
key | The key. |
value | The new value. |
Definition at line 207 of file Hashtable.cs.
The documentation for this class was generated from the following file: