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

◆ RemoveRange() [3/5]

ImmutableList< T > System.Collections.Immutable.ImmutableList< T >.RemoveRange ( IEnumerable< T > items,
IEqualityComparer< T >? equalityComparer )
inline

Implements System.Collections.Immutable.IImmutableList< T >.

Definition at line 1764 of file ImmutableList.cs.

1765 {
1766 Requires.NotNull(items, "items");
1767 if (IsEmpty)
1768 {
1769 return this;
1770 }
1771 Node node = _root;
1772 foreach (T item in items.GetEnumerableDisposable<T, Enumerator>())
1773 {
1774 int num = node.IndexOf(item, equalityComparer);
1775 if (num >= 0)
1776 {
1777 node = node.RemoveAt(num);
1778 }
1779 }
1780 return Wrap(node);
1781 }

References System.Collections.Immutable.ImmutableList< T >._root, System.Collections.Immutable.ImmutableList< T >.IsEmpty, System.item, and System.Collections.Immutable.ImmutableList< T >.Wrap().