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

◆ IsSupersetOf()

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

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

Definition at line 1695 of file SortedSet.cs.

1696 {
1697 if (other == null)
1698 {
1699 throw new ArgumentNullException("other");
1700 }
1701 if (other is ICollection { Count: 0 })
1702 {
1703 return true;
1704 }
1706 {
1707 if (Count < sortedSet.Count)
1708 {
1709 return false;
1710 }
1712 foreach (T item in sortedSet)
1713 {
1714 if (!viewBetween.Contains(item))
1715 {
1716 return false;
1717 }
1718 }
1719 return true;
1720 }
1721 return ContainsAllElements(other);
1722 }
bool ContainsAllElements(IEnumerable< T > collection)
Definition SortedSet.cs:829
virtual SortedSet< T > GetViewBetween(T? lowerValue, T? upperValue)
bool HasEqualComparer(SortedSet< T > other)

References System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Collections.Generic.SortedSet< T >.ContainsAllElements(), System.Collections.Generic.SortedSet< T >.Count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Collections.Generic.SortedSet< T >.GetViewBetween(), System.Collections.Generic.SortedSet< T >.HasEqualComparer(), System.item, and System.other.