ImmutableArray<T>.IImmutableList<T>.Remove 方法

定义

返回一个数组,其中包含已从数组中移除的指定元素的第一个匹配项;如果未找到匹配项,则返回当前数组。

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Remove(T value, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer) = System::Collections::Immutable::IImmutableList<T>::Remove;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Remove (T value, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
abstract member System.Collections.Immutable.IImmutableList<T>.Remove : 'T * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.Remove : 'T * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
Function Remove (value As T, equalityComparer As IEqualityComparer(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).Remove

参数

value
T

要从数组中移除的值。

equalityComparer
IEqualityComparer<T>

要在搜索中使用的相等性比较器。

返回

已移除值的新数组。

实现

注解

此成员是显式接口成员的实现。 它只能在 ImmutableArray<T> 实例被强制转换为 IImmutableList<T> 接口时使用。

适用于