ImmutableList<T>.Remove Method (T, IEqualityComparer<T>)


Removes the first occurrence of the object that matches the specified value from this immutable list.

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

public ImmutableList<T> Remove(
	T value,
	IEqualityComparer<T> equalityComparer


Type: T

The value of the element to remove from the list.

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

The equality comparer to use in the search.

Return Value

Type: System.Collections.Immutable.ImmutableList<T>

A new list with the object removed, or this list if the specified object is not in this list.

Return to top