Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetEquals()

bool System.Collections.Generic.HashSet< T >.SetEquals ( IEnumerable< T > other)
inline

Implements System.Collections.Generic.ISet< T >.

Definition at line 685 of file HashSet.cs.

686 {
687 if (other == null)
688 {
689 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
690 }
691 if (other == this)
692 {
693 return true;
694 }
696 {
697 if (Count != hashSet.Count)
698 {
699 return false;
700 }
702 }
703 if (Count == 0 && other is ICollection<T> { Count: >0 })
704 {
705 return false;
706 }
708 if (num == Count)
709 {
710 return num2 == 0;
711 }
712 return false;
713 }
bool ContainsAllElements(IEnumerable< T > other)
Definition HashSet.cs:1001
static bool EqualityComparersAreEqual(HashSet< T > set1, HashSet< T > set2)
Definition HashSet.cs:1153
int int UnfoundCount CheckUniqueAndUnfoundElements(IEnumerable< T > other, bool returnIfUnfound)
Definition HashSet.cs:1109

References System.Collections.Generic.HashSet< T >.CheckUniqueAndUnfoundElements(), System.Collections.Generic.HashSet< T >.ContainsAllElements(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Collections.Generic.HashSet< T >.Count, System.Runtime.Serialization.Dictionary, System.Collections.Generic.HashSet< T >.EqualityComparersAreEqual(), System.other, and System.ThrowHelper.ThrowArgumentNullException().