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

定义

重载

IImmutableList<T>.RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

从此数组中移除指定的项。Removes the specified items from this array.

IImmutableList<T>.RemoveRange(Int32, Int32)

返回一个数组,其中位于指定位置的元素已被移除。Returns an array with the elements at the specified position removed.

IImmutableList<T>.RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

从此数组中移除指定的项。Removes the specified items from this array.

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

参数

items
IEnumerable<T>

在此列表中找到匹配项时要移除的项。The items to remove if matches are found in this list.

equalityComparer
IEqualityComparer<T>

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

返回

IImmutableList<T>

已移除元素的新数组。A new array with the elements 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.

适用于

IImmutableList<T>.RemoveRange(Int32, Int32)

返回一个数组,其中位于指定位置的元素已被移除。Returns an array with the elements at the specified position removed.

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.RemoveRange(int index, int count) = System::Collections::Immutable::IImmutableList<T>::RemoveRange;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.RemoveRange (int index, int count);
abstract member System.Collections.Immutable.IImmutableList<T>.RemoveRange : int * int -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.RemoveRange : int * int -> System.Collections.Immutable.IImmutableList<'T>
Function RemoveRange (index As Integer, count As Integer) As IImmutableList(Of T) Implements IImmutableList(Of T).RemoveRange

参数

index
Int32

要从数组中移除的起始元素的从 0 开始的索引。The 0-based index of the starting element to remove from the array.

count
Int32

要从数组中移除的元素数。The number of elements to remove from the array.

返回

IImmutableList<T>

已移除指定元素的新数组。The new array with the specified elements 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.

适用于