ImmutableList<T>.RemoveRange 方法

定义

重载

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

从此列表中移除指定的值。

RemoveRange(IEnumerable<T>)

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

RemoveRange(Int32, Int32)

从此不可变列表中移除一系列元素,从指定的索引处开始,并包含指定数量的元素。

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

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

从此列表中移除指定的值。

public:
 System::Collections::Immutable::ImmutableList<T> ^ RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.ImmutableList<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.ImmutableList<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.RemoveRange : seq<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function RemoveRange (items As IEnumerable(Of T), equalityComparer As IEqualityComparer(Of T)) As ImmutableList(Of T)

参数

items
IEnumerable<T>

在此列表中找到匹配项时要移除的项。

equalityComparer
IEqualityComparer<T>

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

返回

已移除元素的新列表。

适用于

RemoveRange(IEnumerable<T>)

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

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

public:
 System::Collections::Immutable::ImmutableList<T> ^ RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableList<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items);
member this.RemoveRange : seq<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function RemoveRange (items As IEnumerable(Of T)) As ImmutableList(Of T)

参数

items
IEnumerable<T>

在此列表中找到匹配项时应删除其元素的集合。

返回

已移除元素的新列表。

适用于

RemoveRange(Int32, Int32)

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

从此不可变列表中移除一系列元素,从指定的索引处开始,并包含指定数量的元素。

public:
 System::Collections::Immutable::ImmutableList<T> ^ RemoveRange(int index, int count);
public System.Collections.Immutable.ImmutableList<T> RemoveRange (int index, int count);
member this.RemoveRange : int * int -> System.Collections.Immutable.ImmutableList<'T>
Public Function RemoveRange (index As Integer, count As Integer) As ImmutableList(Of T)

参数

index
Int32

要从其开始移除的起始索引。

count
Int32

要移除的元素数。

返回

已移除元素的新列表。

适用于