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

◆ IsProperSubsetOf()

bool System.Collections.Generic.HashSet< T >.IsProperSubsetOf ( IEnumerable< T > other)
inline

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

Definition at line 567 of file HashSet.cs.

568 {
569 if (other == null)
570 {
571 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
572 }
573 if (other == this)
574 {
575 return false;
576 }
577 if (other is ICollection<T> collection)
578 {
579 if (collection.Count == 0)
580 {
581 return false;
582 }
583 if (Count == 0)
584 {
585 return collection.Count > 0;
586 }
588 {
589 if (Count >= hashSet.Count)
590 {
591 return false;
592 }
594 }
595 }
597 if (num == Count)
598 {
599 return num2 > 0;
600 }
601 return false;
602 }
bool IsSubsetOfHashSetWithSameComparer(HashSet< T > other)
Definition HashSet.cs:1013
static bool EqualityComparersAreEqual(HashSet< T > set1, HashSet< T > set2)
Definition HashSet.cs:1153
int int UnfoundCount CheckUniqueAndUnfoundElements(IEnumerable< T > other, bool returnIfUnfound)
Definition HashSet.cs:1109

References System.Collections.Generic.HashSet< T >.CheckUniqueAndUnfoundElements(), System.collection, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Collections.Generic.HashSet< T >.Count, System.Runtime.Serialization.Dictionary, System.Collections.Generic.HashSet< T >.EqualityComparersAreEqual(), System.Collections.Generic.HashSet< T >.IsSubsetOfHashSetWithSameComparer(), System.other, and System.ThrowHelper.ThrowArgumentNullException().