HashSet Methods in C#
DevSniper
159 Views
Methods
- Add :- public bool Add (T item);
- Contains :- public bool Contains (T item);
- Clear :- public void Clear ();
- CopyTo(T[]) :- public void CopyTo (T[] array);
- CopyTo (T[] , int) :- public void CopyTo (T[] array, int arrayIndex);
- CopyTo (T[] , int , int) :- public void CopyTo (T[] array, int arrayIndex, int count);
- CreateSetComparer() :- public static System.Collections.Generic.IEqualityComparer<System.Collections.Generic.HashSet<T>> CreateSetComparer ();
- EnsureCapacity (int ) :- public int EnsureCapacity (int capacity);
- Equals (Object) :- public virtual bool Equals (object? obj);
- ExceptWith(IEnumerable<T>) :- public void ExceptWith (System.Collections.Generic.IEnumerable<T> other);
- GetEnumerator() :- public System.Collections.Generic.HashSet<T>.Enumerator GetEnumerator ();
- GetHashCode() :- public virtual int GetHashCode ();
- GetType() :- public Type GetType ();
- IntersectWith(IEnumerable<T>) :- public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);
- IsProperSubsetOf(IEnumerable<T>) :- public bool IsProperSubsetOf (System.Collections.Generic.IEnumerable<T> other);
- IsProperSupersetOf(IEnumerable<T>) :- public bool IsProperSupersetOf (System.Collections.Generic.IEnumerable<T> other);
- IsSubsetOf(IEnumerable<T>) :- public bool IsSubsetOf (System.Collections.Generic.IEnumerable<T> other);
- IsSupersetOf(IEnumerable<T>) :- public bool IsSupersetOf (System.Collections.Generic.IEnumerable<T> other);
- MemberwiseClone() :- protected object MemberwiseClone ();
Creates a shallow copy of the current Object.
- OnDeserialization(Object) :-public virtual void OnDeserialization (object? sender);
- Overlaps(IEnumerable<T>) :- public bool Overlaps (System.Collections.Generic.IEnumerable<T> other);
- Remove(T) :- public bool Remove (T item);
- RemoveWhere(Predicate<T>) :- public int RemoveWhere (Predicate<T> match);
- SetEquals(IEnumerable<T>) :- public bool SetEquals (System.Collections.Generic.IEnumerable<T> other);
- SymmetricExceptWith(IEnumerable<T>) :- public void SymmetricExceptWith (System.Collections.Generic.IEnumerable<T> other);
- ToString() :- public virtual string? ToString ();
- TrimExcess() :- public void TrimExcess ();
- TryGetValue(T, T)public bool TryGetValue (T equalValue, out T actualValue);
- UnionWith(IEnumerable<T>) :- public void UnionWith (System.Collections.Generic.IEnumerable<T> other);