Sage Modeling and Simulation Library

HashtableOfLists<(Of <(<'TKey, TValue>)>)> Methods

The HashtableOfLists<(Of <(<'TKey, TValue>)>)> type exposes the following members.


  Name Description
Public method Add(TKey, TValue)
Adds an element with the specified key and value into the Hashtable of Lists.
Public method Add(TKey, List<(Of <<'(TValue>)>>))
Adds an element with the provided key and value to the IDictionary.
Public method Add(KeyValuePair<(Of <<'(TKey, List<(Of <<'(TValue>)>>)>)>>))
Adds an item to the ICollection.
Public method Clear
Removes all elements from the Hashtable of Lists.
Public method Contains
Determines whether the ICollection contains a specific value.
Public method ContainsKey
Determines whether the IDictionary contains a list element with the specified key.
Public method CopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetEnumerator
Returns an Enumerator that can iterate through all of the entries in the Hashtable of Lists. The enumerator is an enumerator of values, not DictionaryEntries. This method first prunes empty lists from the hashtable.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method PruneEmptyLists
Removes any entries in the HTOL that comprise a key and an empty list (which can result from removals of entries.)
Public method Remove(TKey)
Removes all of the elements with the specified key from the Hashtableof Lists.
Public method Remove(TKey, TValue)
Removes all elements with the specified key from the Hashtable of Lists.
Public method Remove(KeyValuePair<(Of <<'(TKey, List<(Of <<'(TValue>)>>)>)>>))
Removes the first occurrence of a specific object from the ICollection.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method TryGetValue
Gets the value associated with the specified key.