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

◆ SymmetricExceptWithSameComparer() [2/2]

void System.Collections.Generic.SortedSet< T >.SymmetricExceptWithSameComparer ( T[] other,
int count )
inlineprivateinherited

Definition at line 1603 of file SortedSet.cs.

1604 {
1605 if (count == 0)
1606 {
1607 return;
1608 }
1609 T y = other[0];
1610 for (int i = 0; i < count; i++)
1611 {
1612 for (; i < count && i != 0 && comparer.Compare(other[i], y) == 0; i++)
1613 {
1614 }
1615 if (i < count)
1616 {
1617 T val = other[i];
1618 bool flag = (Contains(val) ? Remove(val) : Add(val));
1619 y = val;
1620 continue;
1621 }
1622 break;
1623 }
1624 }

References System.Add, System.Collections.Generic.IComparer< in T >.Compare(), System.Collections.Generic.SortedSet< T >.comparer, System.Collections.Generic.SortedSet< T >.Contains(), System.Collections.Generic.SortedSet< T >.count, System.other, and System.Collections.Generic.SortedSet< T >.Remove().