class HashSet<T>

in global :: System . Collections . Generic

Represents a set of values.

  • T The type of elements in the hash set.

public HashSet<T>( int capacity )

Initializes a new instance of the class that is empty, but has reserved space for items and uses the default equality comparer for the set type.

  • capacity The initial size of the

public IEqualityComparer<T> Comparer { get; }

Gets the object that is used to determine equality for the values in the set.

  • Returns The object that is used to determine equality for the values in the set.

public int Count { get; }

Gets the number of elements that are contained in a set.

  • Returns The number of elements that are contained in the set.

public int EnsureCapacity( int capacity )

Ensures that this hash set can hold the specified number of elements without growing.

  • capacity The minimum capacity to ensure.
  • Returns The new capacity of this instance.

public void GetObjectData( SerializationInfo info, StreamingContext context )

Implements the interface and returns the data needed to serialize a object.

  • info A object that contains the information required to serialize the object.
  • context A structure that contains the source and destination of the serialized stream associated with the object.

public void OnDeserialization( object sender )

Implements the interface and raises the deserialization event when the deserialization is complete.

  • sender The source of the deserialization event.

public void CopyTo( T[] array )

😔 No documentation found.

public void CopyTo( T[] array, int arrayIndex, int count )

😔 No documentation found.

public int RemoveWhere( Predicate<T> match )

😔 No documentation found.

public void TrimExcess( )

😔 No documentation found.

public void TrimExcess( int capacity )

😔 No documentation found.

public static IEqualityComparer<HashSet<T>> CreateSetComparer( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public void CopyTo( T[] array, int arrayIndex )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public HashSet<T>( )

😔 No documentation found.

public HashSet<T>( IEqualityComparer<T> comparer )

😔 No documentation found.

public HashSet<T>( IEnumerable<T> collection )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public HashSet<T>( int capacity, IEqualityComparer<T> comparer )

😔 No documentation found.

public bool Overlaps( IEnumerable<T> other )

😔 No documentation found.

public void Clear( )

😔 No documentation found.

public bool Contains( T item )

😔 No documentation found.

public bool Remove( T item )

😔 No documentation found.

public int Capacity { get; }

😔 No documentation found.

public HashSet<T>.AlternateLookup<TAlternate> GetAlternateLookup( )

😔 No documentation found.

public bool TryGetAlternateLookup( ref HashSet<T>.AlternateLookup<TAlternate> lookup )

😔 No documentation found.

public HashSet<T>.Enumerator GetEnumerator( )

😔 No documentation found.

public bool Add( T item )

😔 No documentation found.

public bool SetEquals( IEnumerable<T> other )

😔 No documentation found.

public bool TryGetValue( T equalValue, ref T actualValue )

😔 No documentation found.

public void IntersectWith( IEnumerable<T> other )

😔 No documentation found.

public void ExceptWith( IEnumerable<T> other )

😔 No documentation found.

public void SymmetricExceptWith( IEnumerable<T> other )

😔 No documentation found.

public bool IsSubsetOf( IEnumerable<T> other )

😔 No documentation found.

public bool IsProperSubsetOf( IEnumerable<T> other )

😔 No documentation found.

public bool IsSupersetOf( IEnumerable<T> other )

😔 No documentation found.

public bool IsProperSupersetOf( IEnumerable<T> other )

😔 No documentation found.

public void UnionWith( IEnumerable<T> other )

😔 No documentation found.

public HashSet<T>( IEnumerable<T> collection, IEqualityComparer<T> comparer )

😔 No documentation found.