Foley .NET Utilities Class Library

HashSet Members

Public Instance Constructors

HashSetOverloaded. Initialize a new instance of the HashSet class.

Public Instance Properties

Count Gets the number of elements contained in the HashSet.
IsEmpty Gets a value idicating whether the HashSet is empty or not.
IsFixedSize (inherited from Collection2Base) Gets a boolean value indicating whether the collection has a fixed size.
IsReadOnly (inherited from Collection2Base) Gets a boolean value indicating whether the collection is read-only.
IsSynchronized (inherited from Collection2Base) Gets a boolean value indicating whether access to the collection is synchronized (thread-safe).
SyncRoot Gets an Object that can be used to synchronize access to the HashSet.

Public Instance Methods

AddOverloaded. Adds the elements of an ICollection into the HashSet.
Clear Removes all elements from the HashSet.
CloneOverloaded. Creates a shallow copy of the HashSet.
ContainsOverloaded. Determines whether all the elements in the specified collection are contained in the HashSet.
CopyTo Copies the entire HashSet to a compatible one-dimensional Array, starting at the specified index of the target array.
Equals (inherited from Object)Select the method name to go to the Microsoft documentation.
GetEnumerator Returns an IEnumerator for the entire HashSet.
GetHashCode (inherited from Object)Select the method name to go to the Microsoft documentation.
GetType (inherited from Object)Select the method name to go to the Microsoft documentation.
Remove (inherited from SetBase)Overloaded. Removes the first occurrence of each element of the specified ICollection from the set.
Retain (inherited from SetBase) Retains the first occurrence of each element of the specified ICollection from the set.
ToString (inherited from Object)Select the method name to go to the Microsoft documentation.

Protected Instance Methods

Finalize (inherited from Object)Select the method name to go to the Microsoft documentation.
IsContainedIn (inherited from Collection2Base) Determins if the specified value is contained in the specified collection.
MemberwiseClone (inherited from Object)Select the method name to go to the Microsoft documentation.

See Also

HashSet Class | Foley.Utilities.Collections Namespace