ImmutableList<T>::IImmutableList<T>::RemoveRange Method (IEnumerable<T>^, IEqualityComparer<T>^)

 

Removes a range of elements from this immutable list that match the items specified.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

private:
virtual IImmutableList<T>^ RemoveRange(
	IEnumerable<T>^ items,
	IEqualityComparer<T>^ equalityComparer
) sealed = IImmutableList<T>::RemoveRange

Parameters

items
Type: System.Collections.Generic::IEnumerable<T>^

The range of items to remove from the list, if found.

equalityComparer
Type: System.Collections.Generic::IEqualityComparer<T>^

The equality comparer to use to compare elements.

Return Value

Type: System.Collections.Immutable::IImmutableList<T>^

An immutable list with the items removed.

Exception Condition
ArgumentNullException

items or equalityComparer is null.

This member is an explicit interface member implementation. It can be used only when the ImmutableList<T> instance is cast to an IImmutableList<T> interface.

Return to top
Show: