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

◆ IsProperSupersetOf()

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

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

Definition at line 1724 of file SortedSet.cs.

1725 {
1726 if (other == null)
1727 {
1728 throw new ArgumentNullException("other");
1729 }
1730 if (Count == 0)
1731 {
1732 return false;
1733 }
1734 if (other is ICollection { Count: 0 })
1735 {
1736 return true;
1737 }
1739 {
1740 if (sortedSet.Count >= Count)
1741 {
1742 return false;
1743 }
1745 foreach (T item in sortedSet)
1746 {
1747 if (!viewBetween.Contains(item))
1748 {
1749 return false;
1750 }
1751 }
1752 return true;
1753 }
1755 if (elementCount.UniqueCount < Count)
1756 {
1757 return elementCount.UnfoundCount == 0;
1758 }
1759 return false;
1760 }
ElementCount CheckUniqueAndUnfoundElements(IEnumerable< T > other, bool returnIfUnfound)
virtual SortedSet< T > GetViewBetween(T? lowerValue, T? upperValue)
bool HasEqualComparer(SortedSet< T > other)

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