ImmutableList<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>

用于比较元素相等性的比较器。

返回

一个新的 ImmutableList<T>,其中已删除指定元素。

实现

注解

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

适用于