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

◆ IsSupersetOf()

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

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

Definition at line 604 of file HashSet.cs.

605 {
606 if (other == null)
607 {
608 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
609 }
610 if (other == this)
611 {
612 return true;
613 }
614 if (other is ICollection<T> collection)
615 {
616 if (collection.Count == 0)
617 {
618 return true;
619 }
621 {
622 return false;
623 }
624 }
626 }
bool ContainsAllElements(IEnumerable< T > other)
Definition HashSet.cs:1001
static bool EqualityComparersAreEqual(HashSet< T > set1, HashSet< T > set2)
Definition HashSet.cs:1153

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