Export (0) Print
Expand All

ImmutableHashSet<T> Methods

The ImmutableHashSet<T> type exposes the following members.

  Name Description
Public method Add Adds the specified element to the hash set.
Public method Clear Retrieves an empty immutable hash set that has the same sorting and ordering semantics as this instance.
Public method Contains Determines whether this immutable hash set contains the specified element.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Except Removes the elements in the specified collection from the current immutable hash set.
Public method GetEnumerator Returns an enumerator that iterates through the collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Intersect Creates an immutable hash set that contains elements that exist in both this set and the specified set.
Public method IsProperSubsetOf Determines whether the current immutable hash set is a proper (strict) subset of a specified collection.
Public method IsProperSupersetOf Determines whether the current immutable hash set is a proper (strict) superset of a specified collection.
Public method IsSubsetOf Determines whether the current immutable hash set is a subset of a specified collection.
Public method IsSupersetOf Determines whether the current immutable hash set is a superset of a specified collection.
Public method Overlaps Determines whether the current immutable hash set overlaps with the specified collection.
Public method Remove Removes the specified element from this immutable hash set.
Public method SetEquals Determines whether the current immutable hash set and the specified collection contain the same elements.
Public method SymmetricExcept Creates an immutable hash set that contains only elements that are present either in the current set or in the specified collection, but not both.
Public method ToBuilder Creates an immutable hash set that has the same contents as this set and can be efficiently mutated across multiple operations by using standard mutable interfaces.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetValue Searches the set for a given value and returns the equal value it finds, if any.
Public method Union Creates a new immutable hash set that contains all elements that are present in either the current set or in the specified collection.
Public method WithComparer Gets an instance of the immutable hash set that uses the specified equality comparer for its search methods.
Top

  Name Description
Public Extension Method ToImmutableDictionary<T, TKey>(Func<T, TKey>) Overloaded. Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<T, TKey>(Func<T, TKey>, IEqualityComparer<TKey>) Overloaded. Constructs an immutable dictionary based on some transformation of a sequence. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<T, TKey, TValue>(Func<T, TKey>, Func<T, TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<T, TKey, TValue>(Func<T, TKey>, Func<T, TValue>, IEqualityComparer<TKey>) Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<T, TKey, TValue>(Func<T, TKey>, Func<T, TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableHashSet<T>() Overloaded. Enumerates a sequence and produces an immutable hash set of its contents. (Defined by ImmutableHashSet.)
Public Extension Method ToImmutableHashSet<T>(IEqualityComparer<T>) Overloaded. Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type. (Defined by ImmutableHashSet.)
Public Extension Method ToImmutableList<T> Enumerates a sequence and produces an immutable list of its contents. (Defined by ImmutableList.)
Public Extension Method ToImmutableSortedDictionary<T, TKey, TValue>(Func<T, TKey>, Func<T, TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents. (Defined by ImmutableSortedDictionary.)
Public Extension Method ToImmutableSortedDictionary<T, TKey, TValue>(Func<T, TKey>, Func<T, TValue>, IComparer<TKey>) Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer. (Defined by ImmutableSortedDictionary.)
Public Extension Method ToImmutableSortedDictionary<T, TKey, TValue>(Func<T, TKey>, Func<T, TValue>, IComparer<TKey>, IEqualityComparer<TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers. (Defined by ImmutableSortedDictionary.)
Public Extension Method ToImmutableSortedSet<T>() Overloaded. Enumerates a sequence and produces an immutable sorted set of its contents. (Defined by ImmutableSortedSet.)
Public Extension Method ToImmutableSortedSet<T>(IComparer<T>) Overloaded. Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. (Defined by ImmutableSortedSet.)
Top

  Name Description
Explicit interface implemetation Private method ICollection<T>.Add Adds an item to the set.
Explicit interface implemetation Private method ISet<T>.Add Adds an element to the current set and returns a value that indicates whether the element was successfully added.
Explicit interface implemetation Private method ICollection<T>.Clear Removes all items from this set.
Explicit interface implemetation Private method ICollection<T>.CopyTo Copies the elements of the set to an array, starting at a particular index.
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the set to an array, starting at a particular index.
Explicit interface implemetation Private method ISet<T>.ExceptWith Removes all elements in the specified collection from the current set.
Explicit interface implemetation Private method IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through a set.
Explicit interface implemetation Private method ISet<T>.IntersectWith Modifies the current set so that it contains only elements that are also in a specified collection.
Explicit interface implemetation Private method ICollection<T>.Remove Removes the first occurrence of a specific object from the set.
Explicit interface implemetation Private method ISet<T>.SymmetricExceptWith Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
Explicit interface implemetation Private method ISet<T>.UnionWith Modifies the current set so that it contains all elements that are present in either the current set or in the specified collection.
Explicit interface implemetation Private method IImmutableSet<T>.Add Adds the specified element to this immutable set.
Explicit interface implemetation Private method IImmutableSet<T>.Clear Retrieves an empty set that has the same sorting and ordering semantics as this instance.
Explicit interface implemetation Private method IImmutableSet<T>.Except Removes the elements in the specified collection from the current set.
Explicit interface implemetation Private method IImmutableSet<T>.Intersect Creates an immutable set that contains elements that exist in both this set and the specified set.
Explicit interface implemetation Private method IImmutableSet<T>.Remove Removes the specified element from this immutable set.
Explicit interface implemetation Private method IImmutableSet<T>.SymmetricExcept Creates an immutable set that contains only elements that are present either in the current set or in the specified collection, but not both.
Explicit interface implemetation Private method IImmutableSet<T>.Union Creates a new immutable set that contains all elements that are present in either the current set or in the specified collection.
Top
Show:
© 2014 Microsoft