Click or drag to resize

OrderedHashSetT Class

An implementation of a HashSet that retains the insertion order.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    System.Collections.ObjectModelKeyedCollectionT, T
      Nova.UtilitiesOrderedHashSetT

Namespace:  Nova.Utilities
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public class OrderedHashSet<T> : KeyedCollection<T, T>

Type Parameters

T

The OrderedHashSetT type exposes the following members.

Constructors
  NameDescription
Public methodOrderedHashSetT
Initializes a new instance of the OrderedHashSetT class
Top
Properties
  NameDescription
Public propertyComparer
Gets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollectionT, T.)
Public propertyCount
Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionT.)
Protected propertyDictionary
Gets the lookup dictionary of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionT, T.)
Public propertyItemTKey
Gets the element with the specified key.
(Inherited from KeyedCollectionT, T.)
Public propertyItemInt32
Gets or sets the element at the specified index.
(Inherited from CollectionT.)
Protected propertyItems
Gets a IListT wrapper around the CollectionT.
(Inherited from CollectionT.)
Top
Methods
  NameDescription
Public methodAdd
Adds an object to the end of the CollectionT.
(Inherited from CollectionT.)
Protected methodChangeItemKey
Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollectionT, T.)
Public methodClear
Removes all elements from the CollectionT.
(Inherited from CollectionT.)
Protected methodClearItems
Removes all elements from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionT, T.)
Public methodContains
Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollectionT, T.)
Public methodCopyTo
Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionT.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionT.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetKeyForItem (Overrides KeyedCollectionTKey, TItemGetKeyForItem(TItem).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionT.)
Public methodInsert
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionT.)
Protected methodInsertItem
Inserts an element into the KeyedCollectionTKey, TItem at the specified index.
(Inherited from KeyedCollectionT, T.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the element with the specified key from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionT, T.)
Public methodRemoveAt
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionT.)
Protected methodRemoveItem
Removes the element at the specified index of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionT, T.)
Protected methodSetItem
Replaces the item at the specified index with the specified item.
(Inherited from KeyedCollectionT, T.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also