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

◆ IsProperSubsetOf()

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

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

Definition at line 1669 of file SortedSet.cs.

1670 {
1671 if (other == null)
1672 {
1673 throw new ArgumentNullException("other");
1674 }
1675 if (other is ICollection collection && Count == 0)
1676 {
1677 return collection.Count > 0;
1678 }
1680 {
1681 if (Count >= sortedSet.Count)
1682 {
1683 return false;
1684 }
1686 }
1688 if (elementCount.UniqueCount == Count)
1689 {
1690 return elementCount.UnfoundCount > 0;
1691 }
1692 return false;
1693 }
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.collection, 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.