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

◆ Overlaps()

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

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

Definition at line 1793 of file SortedSet.cs.

1794 {
1795 if (other == null)
1796 {
1797 throw new ArgumentNullException("other");
1798 }
1799 if (Count == 0)
1800 {
1801 return false;
1802 }
1803 if (other is ICollection<T> { Count: 0 })
1804 {
1805 return false;
1806 }
1808 {
1809 return false;
1810 }
1811 foreach (T item in other)
1812 {
1813 if (Contains(item))
1814 {
1815 return true;
1816 }
1817 }
1818 return false;
1819 }
bool HasEqualComparer(SortedSet< T > other)

References 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.Collections.Generic.SortedSet< T >.HasEqualComparer(), System.item, System.Collections.Generic.SortedSet< T >.Max, System.Collections.Generic.SortedSet< T >.Min, and System.other.