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

◆ IsSubsetOf()

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

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

Definition at line 1626 of file SortedSet.cs.

1627 {
1628 if (other == null)
1629 {
1630 throw new ArgumentNullException("other");
1631 }
1632 if (Count == 0)
1633 {
1634 return true;
1635 }
1637 {
1638 if (Count > sortedSet.Count)
1639 {
1640 return false;
1641 }
1643 }
1645 if (elementCount.UniqueCount == Count)
1646 {
1647 return elementCount.UnfoundCount >= 0;
1648 }
1649 return false;
1650 }
ElementCount CheckUniqueAndUnfoundElements(IEnumerable< T > other, bool returnIfUnfound)
bool IsSubsetOfSortedSetWithSameComparer(SortedSet< T > asSorted)
bool HasEqualComparer(SortedSet< T > other)

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