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

◆ IsSubsetOf()

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

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

Definition at line 541 of file HashSet.cs.

542 {
543 if (other == null)
544 {
545 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
546 }
547 if (Count == 0 || other == this)
548 {
549 return true;
550 }
552 {
553 if (Count > hashSet.Count)
554 {
555 return false;
556 }
558 }
560 if (num == Count)
561 {
562 return num2 >= 0;
563 }
564 return false;
565 }
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.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().