Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes

TRSHashTable<TKey,TValue> Class

Scroll Prev Top Next More

Namespace: RSGenerics.Collections

Type Parameters

TKey

TValue

 (Overrides RSGenerics.Collections.TRSDictionary<TKey,TValue>.KeyNotify(TKey,TCollectionNotification).)

public method

Put(TKey,TValue)

Stores the Value defined type at the specified hash key. It returns the old value at that hash key if there was one.

public method

Remove(TKey)

Remove key-value pair.

Remove removes the given key and its associated value from the dictionary. No exception is thrown if the key is not in the dictionary. This is an O(1) operation.

An     OnKeyNotify event and an     OnValueNotify event occur indicating an entry was removed from the dictionary.
 
 

public method

ToArray

Returns the content of the dictionary as an array.
 (Overrides RSGenerics.Collections.TRSEnumerable<T>.ToArray.)

protected method

ToArrayImpl(Integer)

Converts the enumerable container's items into an equivalent TArray of items. (Inherited from RSGenerics.Collections.TRSEnumerable<T>.)

public method

TrimExcess

Reduce capacity to current number of entries.

TrimExcess changes the capacity to the number of dictionary entries, held in Count.

This method rehashes the internal hash table to save space. This is only useful after a lot of items have been deleted from the dictionary.
 

public method

TryGetValue(TKey,TValue)

Try to get value for key.

TryGetValue returns true if the given key is in the dictionary and provides its value in Value. Otherwise, it returns false and Value is set to the default value type of TValue. No exception is raised if the key is not in the dictionary. This is an O(1) operation.
 

protected method

ValueNotify(TValue,TCollectionNotification)

Triggers an     OnValueNotify event with the given parameters.

Call ValueNotify to trigger an OnValueNotify event with the given parameters.

The meaning of the parameters is given in the following table:

Value

The Value that is added, removed or extracted.
 

Action

The action that the Value undergoes, which is of type TCollectionNotification.
 

Top

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb