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

◆ IsProperSupersetOf()

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

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

Definition at line 628 of file HashSet.cs.

629 {
630 if (other == null)
631 {
632 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
633 }
634 if (Count == 0 || other == this)
635 {
636 return false;
637 }
638 if (other is ICollection<T> collection)
639 {
640 if (collection.Count == 0)
641 {
642 return true;
643 }
645 {
646 if (hashSet.Count >= Count)
647 {
648 return false;
649 }
651 }
652 }
654 if (num < Count)
655 {
656 return num2 == 0;
657 }
658 return false;
659 }
bool ContainsAllElements(IEnumerable< T > other)
Definition HashSet.cs:1001
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.HashSet< T >.ContainsAllElements(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Collections.Generic.HashSet< T >.Count, System.Runtime.Serialization.Dictionary, System.Collections.Generic.HashSet< T >.EqualityComparersAreEqual(), System.other, and System.ThrowHelper.ThrowArgumentNullException().