LogIn
I don't have account.

HashSet Methods in C#

DevSniper
159 Views

Methods

  1. Add :- public bool Add (T item);
  2. Contains :- public bool Contains (T item);
  3. Clear :- public void Clear ();
  4. CopyTo(T[]) :- public void CopyTo (T[] array);
  5. CopyTo (T[] , int) :- public void CopyTo (T[] array, int arrayIndex);
  6. CopyTo (T[] , int , int) :- public void CopyTo (T[] array, int arrayIndex, int count);
  7. CreateSetComparer() :- public static System.Collections.Generic.IEqualityComparer<System.Collections.Generic.HashSet<T>> CreateSetComparer ();
  8. EnsureCapacity (int ) :- public int EnsureCapacity (int capacity);
  9. Equals (Object) :- public virtual bool Equals (object? obj);
  10. ExceptWith(IEnumerable<T>) :- public void ExceptWith (System.Collections.Generic.IEnumerable<T> other);
  11. GetEnumerator() :- public System.Collections.Generic.HashSet<T>.Enumerator GetEnumerator ();
  12. GetHashCode() :- public virtual int GetHashCode ();
  13. GetType() :- public Type GetType ();
  14. IntersectWith(IEnumerable<T>) :- public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);
  15. IsProperSubsetOf(IEnumerable<T>) :- public bool IsProperSubsetOf (System.Collections.Generic.IEnumerable<T> other);
  16. IsProperSupersetOf(IEnumerable<T>) :- public bool IsProperSupersetOf (System.Collections.Generic.IEnumerable<T> other);
  17. IsSubsetOf(IEnumerable<T>) :- public bool IsSubsetOf (System.Collections.Generic.IEnumerable<T> other);
  18. IsSupersetOf(IEnumerable<T>) :- public bool IsSupersetOf (System.Collections.Generic.IEnumerable<T> other);
  19. MemberwiseClone() :- protected object MemberwiseClone ();

    Creates a shallow copy of the current Object.

  20. OnDeserialization(Object) :-public virtual void OnDeserialization (object? sender);
  21. Overlaps(IEnumerable<T>) :- public bool Overlaps (System.Collections.Generic.IEnumerable<T> other);
  22. Remove(T) :- public bool Remove (T item);
  23. RemoveWhere(Predicate<T>) :- public int RemoveWhere (Predicate<T> match);
  24. SetEquals(IEnumerable<T>) :- public bool SetEquals (System.Collections.Generic.IEnumerable<T> other);
  25. SymmetricExceptWith(IEnumerable<T>) :- public void SymmetricExceptWith (System.Collections.Generic.IEnumerable<T> other);
  26. ToString() :- public virtual string? ToString ();
  27. TrimExcess() :- public void TrimExcess ();
  28. TryGetValue(T, T)public bool TryGetValue (T equalValue, out T actualValue);
  29. UnionWith(IEnumerable<T>) :- public void UnionWith (System.Collections.Generic.IEnumerable<T> other);