Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
HashSet(T) Class
 HashSet(T) Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
.NET Framework Class Library
HashSet<(Of <(T>)>) Members

Updated: November 2007

Represents a set of values.

The HashSet<(Of <(T>)>) type exposes the following members.

  NameDescription
HashSet<(Of <(T>)>)Overloaded. Initializes a new instance of the HashSet<(Of <(T>)>) class.
Top
  NameDescription
Add Adds the specified element to a set.
Clear Removes all elements from a HashSet<(Of <(T>)>) object.
Contains Determines whether a HashSet<(Of <(T>)>) object contains the specified element.
CopyToOverloaded. Copies the elements of a HashSet<(Of <(T>)>) collection to an array.
CreateSetComparer Returns an IEqualityComparer object that can be used for deep equality testing of a HashSet<(Of <(T>)>) object.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
ExceptWith Removes all elements in the specified collection from the current HashSet<(Of <(T>)>) object.
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetEnumerator Returns an enumerator that iterates through a HashSet<(Of <(T>)>) object.
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetObjectData Implements the System.Runtime.Serialization..::.ISerializable interface and returns the data needed to serialize a HashSet<(Of <(T>)>) object.
GetType Gets the Type of the current instance. (Inherited from Object.)
IntersectWith Modifies the current HashSet<(Of <(T>)>) object to contain only elements that are present in that object and in the specified collection.
IsProperSubsetOf Determines whether a HashSet<(Of <(T>)>) object is a proper subset of the specified collection.
IsProperSupersetOf Determines whether a HashSet<(Of <(T>)>) object is a proper superset of the specified collection.
IsSubsetOf Determines whether a HashSet<(Of <(T>)>) object is a subset of the specified collection.
IsSupersetOf Determines whether a HashSet<(Of <(T>)>) object is a superset of the specified collection.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
OnDeserialization Implements the System.Runtime.Serialization..::.ISerializable interface and raises the deserialization event when the deserialization is complete.
Overlaps Determines whether the current HashSet<(Of <(T>)>) object overlaps the specified collection.
Remove Removes the specified element from a HashSet<(Of <(T>)>) object.
RemoveWhere Removes all elements that match the conditions defined by the specified predicate from a HashSet<(Of <(T>)>) collection.
SetEquals Determines whether a HashSet<(Of <(T>)>) object and the specified collection contain the same elements.
SymmetricExceptWith Modifies the current HashSet<(Of <(T>)>) object to contain only elements that are present either in that object or in the specified collection, but not both.
ToString Returns a String that represents the current Object. (Inherited from Object.)
TrimExcess Sets the capacity of a HashSet<(Of <(T>)>) object to the actual number of elements it contains, rounded up to a nearby, implementation-specific value.
UnionWith Modifies the current HashSet<(Of <(T>)>) object to contain all elements that are present in both itself and in the specified collection.
Top
  NameDescription
Aggregate Applies an accumulator function over a sequence. (Defined by Enumerable.)
All Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
AnyOverloaded.
AsEnumerable Returns the input typed as IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
AsQueryableOverloaded.
AverageOverloaded.
Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Concat Concatenates two sequences. (Defined by Enumerable.)
ContainsOverloaded.
CountOverloaded.
DefaultIfEmptyOverloaded.
DistinctOverloaded.
ElementAt Returns the element at a specified index in a sequence. (Defined by Enumerable.)
ElementAtOrDefault Returns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
ExceptOverloaded.
FirstOverloaded.
FirstOrDefaultOverloaded.
IntersectOverloaded.
LastOverloaded.
LastOrDefaultOverloaded.
LongCountOverloaded.
MaxOverloaded.
MinOverloaded.
OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Reverse Inverts the order of the elements in a sequence. (Defined by Enumerable.)
SequenceEqualOverloaded.
SingleOverloaded.
SingleOrDefaultOverloaded.
Skip Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
SkipWhileOverloaded.
SumOverloaded.
Take Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
TakeWhileOverloaded.
ToArray Creates an array from a IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
ToList Creates a List<(Of <(T>)>) from an IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
UnionOverloaded.
WhereOverloaded.
Top
  NameDescription
Comparer Gets the IEqualityComparer<(Of <(T>)>) object that is used to determine equality for the values in the set.
Count Gets the number of elements that are contained in a set.
Top
  NameDescription
ICollection<(Of <(T>)>)..::.Add Adds an item to an ICollection<(Of <(T>)>) object.
IEnumerable<(Of <(T>)>)..::.GetEnumerator Returns an enumerator that iterates through a collection.
IEnumerable..::.GetEnumerator Returns an enumerator that iterates through a collection.
ICollection<(Of <(T>)>)..::.IsReadOnly Gets a value indicating whether a collection is read-only.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker