ImmutableArray<T>::Remove Method (T, IEqualityComparer<T>^)

 

Returns an array with the first occurrence of the specified element removed from the array.

If no match is found, the current array is returned.

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

public:
ImmutableArray<T> Remove(
	T item,
	IEqualityComparer<T>^ equalityComparer
)

Parameters

item
Type: T

The item to remove.

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

The equality comparer to use in the search.

Return Value

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

A new array with the specified item removed.

Return to top
Show: