Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
HashSet(T) Class
 HashSet(T) Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
HashSet<(Of <(T>)>) Members

Represents a set of values.

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

  NameDescription
Public methodHashSet<(Of <(T>)>)Overloaded. Initializes a new instance of the HashSet<(Of <(T>)>) class.
Top
  NameDescription
Public methodAdd Adds the specified element to a set.
Public methodClear Removes all elements from a HashSet<(Of <(T>)>) object.
Public methodContains Determines whether a HashSet<(Of <(T>)>) object contains the specified element.
Public methodCopyToOverloaded. Copies the elements of a HashSet<(Of <(T>)>) collection to an array.
Public methodStatic memberCreateSetComparer Returns an IEqualityComparer object that can be used for deep equality testing of a HashSet<(Of <(T>)>) object.
Public methodEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExceptWith Removes all elements in the specified collection from the current HashSet<(Of <(T>)>) object.
Protected methodFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumerator Returns an enumerator that iterates through a HashSet<(Of <(T>)>) object.
Public methodGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetObjectData Implements the System.Runtime.Serialization..::.ISerializable interface and returns the data needed to serialize a HashSet<(Of <(T>)>) object.
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodIntersectWith Modifies the current HashSet<(Of <(T>)>) object to contain only elements that are present in that object and in the specified collection.
Public methodIsProperSubsetOf Determines whether a HashSet<(Of <(T>)>) object is a proper subset of the specified collection.
Public methodIsProperSupersetOf Determines whether a HashSet<(Of <(T>)>) object is a proper superset of the specified collection.
Public methodIsSubsetOf Determines whether a HashSet<(Of <(T>)>) object is a subset of the specified collection.
Public methodIsSupersetOf Determines whether a HashSet<(Of <(T>)>) object is a superset of the specified collection.
Protected methodMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnDeserialization Implements the System.Runtime.Serialization..::.ISerializable interface and raises the deserialization event when the deserialization is complete.
Public methodOverlaps Determines whether the current HashSet<(Of <(T>)>) object overlaps the specified collection.
Public methodRemove Removes the specified element from a HashSet<(Of <(T>)>) object.
Public methodRemoveWhere Removes all elements that match the conditions defined by the specified predicate from a HashSet<(Of <(T>)>) collection.
Public methodSetEquals Determines whether a HashSet<(Of <(T>)>) object and the specified collection contain the same elements.
Public methodSymmetricExceptWith 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.
Public methodToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodTrimExcess 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.
Public methodUnionWith Modifies the current HashSet<(Of <(T>)>) object to contain all elements that are present in both itself and in the specified collection.
Top
  NameDescription
Public Extension MethodAggregateApplies an accumulator function over a sequence. (Defined by Enumerable.)
Public Extension MethodAllDetermines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodAnyOverloaded. Determines whether any element of a sequence exists or satisfies a condition.
Public Extension MethodAsEnumerableReturns the input typed as IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
Public Extension MethodAsQueryableOverloaded. Converts an IEnumerable or generic IEnumerable<(Of <(T>)>) to an IQueryable or generic IQueryable<(Of <(T>)>).
Public Extension MethodAverageOverloaded. Computes the average of a sequence of numeric values.
Public Extension MethodCastConverts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodConcatConcatenates two sequences. (Defined by Enumerable.)
Public Extension MethodContainsOverloaded. Determines whether a sequence contains a specified element.
Public Extension MethodCountOverloaded. Returns the number of elements in a sequence.
Public Extension MethodDefaultIfEmptyOverloaded. Returns the elements of an IEnumerable<(Of <(T>)>), or a default valued singleton collection if the sequence is empty.
Public Extension MethodDistinctOverloaded. Returns distinct elements from a sequence.
Public Extension MethodElementAtReturns the element at a specified index in a sequence. (Defined by Enumerable.)
Public Extension MethodElementAtOrDefaultReturns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
Public Extension MethodExceptOverloaded. Produces the set difference of two sequences.
Public Extension MethodFirstOverloaded. Returns the first element of a sequence.
Public Extension MethodFirstOrDefaultOverloaded. Returns the first element of a sequence, or a default value if no element is found.
Public Extension MethodIntersectOverloaded. Produces the set intersection of two sequences.
Public Extension MethodLastOverloaded. Returns the last element of a sequence.
Public Extension MethodLastOrDefaultOverloaded. Returns the last element of a sequence, or a default value if no element is found.
Public Extension MethodLongCountOverloaded. Returns an Int64 that represents the number of elements in a sequence.
Public Extension MethodMaxOverloaded. Returns the maximum value in a sequence of values.
Public Extension MethodMinOverloaded. Returns the minimum value in a sequence of values.
Public Extension MethodOfTypeFilters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension MethodReverseInverts the order of the elements in a sequence. (Defined by Enumerable.)
Public Extension MethodSequenceEqualOverloaded. Determines whether two sequences are equal according to an equality comparer.
Public Extension MethodSingleOverloaded. Returns a single, specific element of a sequence of values.
Public Extension MethodSingleOrDefaultOverloaded. Returns a single, specific element of a sequence of values, or a default value if no such element is found.
Public Extension MethodSkipBypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
Public Extension MethodSkipWhileOverloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
Public Extension MethodSumOverloaded. Computes the sum of a sequence of numeric values.
Public Extension MethodTakeReturns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
Public Extension MethodTakeWhileOverloaded. Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
Public Extension MethodToArrayCreates an array from a IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
Public Extension MethodToListCreates a List<(Of <(T>)>) from an IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
Public Extension MethodUnionOverloaded. Produces the set union of two sequences.
Public Extension MethodWhereOverloaded. Filters a sequence of values based on a predicate.
Top
  NameDescription
Public propertyComparer Gets the IEqualityComparer<(Of <(T>)>) object that is used to determine equality for the values in the set.
Public propertyCount Gets the number of elements that are contained in a set.
Top
  NameDescription
Explicit interface implemetationPrivate methodICollection<(Of <(T>)>)..::.Add Adds an item to an ICollection<(Of <(T>)>) object.
Explicit interface implemetationPrivate methodIEnumerable<(Of <(T>)>)..::.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate methodIEnumerable..::.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate propertyICollection<(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
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker