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

◆ ExceptWith()

void System.Collections.Generic.HashSet< T >.ExceptWith ( IEnumerable< T > other)
inline

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

Definition at line 496 of file HashSet.cs.

497 {
498 if (other == null)
499 {
500 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
501 }
502 if (Count == 0)
503 {
504 return;
505 }
506 if (other == this)
507 {
508 Clear();
509 return;
510 }
511 foreach (T item in other)
512 {
513 Remove(item);
514 }
515 }

References System.Collections.Generic.HashSet< T >.Clear(), System.Collections.Generic.HashSet< T >.Count, System.item, System.other, System.Collections.Generic.HashSet< T >.Remove(), and System.ThrowHelper.ThrowArgumentNullException().