HashSet<(Of <(T>)>) Members
This page is specific to:.NET Framework Version:3.54.0
.NET Framework Class Library
HashSet<(Of <(T>)>) Members

Represents a set of values.

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

Constructors

  NameDescription
Public methodHashSet<(Of <(T>)>)Overloaded. Initializes a new instance of the HashSet<(Of <(T>)>) class.
Top
Methods

  NameDescription
Public methodAddAdds the specified element to a set.
Public methodClearRemoves all elements from a HashSet<(Of <(T>)>) object.
Public methodContainsDetermines 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 memberCreateSetComparerReturns an IEqualityComparer object that can be used for equality testing of a HashSet<(Of <(T>)>) object.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExceptWithRemoves all elements in the specified collection from the current HashSet<(Of <(T>)>) object.
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that iterates through a HashSet<(Of <(T>)>) object.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetObjectDataImplements the System.Runtime.Serialization..::.ISerializable interface and returns the data needed to serialize a HashSet<(Of <(T>)>) object.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIntersectWithModifies the current HashSet<(Of <(T>)>) object to contain only elements that are present in that object and in the specified collection.
Public methodIsProperSubsetOfDetermines whether a HashSet<(Of <(T>)>) object is a proper subset of the specified collection.
Public methodIsProperSupersetOfDetermines whether a HashSet<(Of <(T>)>) object is a proper superset of the specified collection.
Public methodIsSubsetOfDetermines whether a HashSet<(Of <(T>)>) object is a subset of the specified collection.
Public methodIsSupersetOfDetermines whether a HashSet<(Of <(T>)>) object is a superset of the specified collection.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnDeserializationImplements the System.Runtime.Serialization..::.ISerializable interface and raises the deserialization event when the deserialization is complete.
Public methodOverlapsDetermines whether the current HashSet<(Of <(T>)>) object and a specified collection share common elements.
Public methodRemoveRemoves the specified element from a HashSet<(Of <(T>)>) object.
Public methodRemoveWhereRemoves all elements that match the conditions defined by the specified predicate from a HashSet<(Of <(T>)>) collection.
Public methodSetEqualsDetermines whether a HashSet<(Of <(T>)>) object and the specified collection contain the same elements.
Public methodSymmetricExceptWithModifies 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 methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Public methodTrimExcessSets 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 methodUnionWithModifies the current HashSet<(Of <(T>)>) object to contain all elements that are present in both itself and in the specified collection.
Top
Extension Methods

  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
Properties

  NameDescription
Public propertyComparerGets the IEqualityComparer<(Of <(T>)>) object that is used to determine equality for the values in the set.
Public propertyCountGets the number of elements that are contained in a set.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodICollection<(Of <(T>)>)..::.AddAdds an item to an ICollection<(Of <(T>)>) object.
Explicit interface implemetationPrivate methodIEnumerable<(Of <(T>)>)..::.GetEnumeratorReturns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate methodIEnumerable..::.GetEnumeratorReturns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate propertyICollection<(Of <(T>)>)..::.IsReadOnlyGets a value indicating whether a collection is read-only.
Top
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View