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

◆ SetEquals()

bool System.Collections.Generic.SortedSet< T >.SetEquals ( IEnumerable< T > other)
inlineinherited

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

Definition at line 1762 of file SortedSet.cs.

1763 {
1764 if (other == null)
1765 {
1766 throw new ArgumentNullException("other");
1767 }
1769 {
1771 Enumerator enumerator2 = sortedSet.GetEnumerator();
1772 bool flag = !enumerator.MoveNext();
1773 bool flag2 = !enumerator2.MoveNext();
1774 while (!flag && !flag2)
1775 {
1776 if (Comparer.Compare(enumerator.Current, enumerator2.Current) != 0)
1777 {
1778 return false;
1779 }
1780 flag = !enumerator.MoveNext();
1781 flag2 = !enumerator2.MoveNext();
1782 }
1783 return flag && flag2;
1784 }
1786 if (elementCount.UniqueCount == Count)
1787 {
1788 return elementCount.UnfoundCount == 0;
1789 }
1790 return false;
1791 }
ElementCount CheckUniqueAndUnfoundElements(IEnumerable< T > other, bool returnIfUnfound)
bool HasEqualComparer(SortedSet< T > other)

References System.Collections.Generic.SortedSet< T >.CheckUniqueAndUnfoundElements(), System.Collections.Generic.Comparer< T >.Compare(), System.Collections.Generic.SortedSet< T >.Count, System.Runtime.Serialization.Dictionary, System.Collections.Generic.SortedSet< T >.GetEnumerator(), System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.Collections.Generic.SortedSet< T >.HasEqualComparer(), and System.other.