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

◆ IsSubsetOf() [2/2]

static bool System.Collections.Immutable.ImmutableHashSet< T >.IsSubsetOf ( IEnumerable< T > other,
MutationInput origin )
inlinestaticprivate

Definition at line 1211 of file ImmutableHashSet.cs.

1212 {
1213 Requires.NotNull(other, "other");
1214 if (origin.Root.IsEmpty)
1215 {
1216 return true;
1217 }
1218 HashSet<T> hashSet = new HashSet<T>(other, origin.EqualityComparer);
1219 int num = 0;
1220 foreach (T item in hashSet)
1221 {
1222 if (Contains(item, origin))
1223 {
1224 num++;
1225 }
1226 }
1227 return num == origin.Count;
1228 }

References System.Collections.Immutable.ImmutableHashSet< T >.Contains(), System.Collections.Immutable.ImmutableHashSet< T >.MutationInput.EqualityComparer, System.item, System.other, and System.Collections.Immutable.ImmutableHashSet< T >.MutationInput.Root.