ImmutableArray<T>.IImmutableList<T>.Remove(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.

 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);
Function Remove (value As T, equalityComparer As IEqualityComparer(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).Remove

参数

value
T

要从数组中移除的值。The value to remove from the array.

equalityComparer
IEqualityComparer<T>

要在搜索中使用的相等性比较器。The equality comparer to use in the search.

返回

已移除值的新数组。A new array with the value removed.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableArray<T> 实例被强制转换为 IImmutableList<T> 接口时使用。It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.

适用于