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

定义

从此不可变列表中移除一系列元素。

重载

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

从此不可变列表中移除与指定项匹配的一系列元素。

IImmutableList<T>.RemoveRange(Int32, Int32)

从此列表中的指定位置移除指定数量的元素。

注解

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

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

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

从此不可变列表中移除与指定项匹配的一系列元素。

 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>

要从列表中移除的项的范围(如果已找到)。

equalityComparer
IEqualityComparer<T>

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

返回

已移除项的不可变列表。

实现

例外

itemsequalityComparernull

注解

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

适用于

IImmutableList<T>.RemoveRange(Int32, Int32)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

从此列表中的指定位置移除指定数量的元素。

 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

要移除的一系列元素的起始索引。

count
Int32

要移除的元素数。

返回

已移除元素的新列表。

实现

注解

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

适用于