語言

IImmutableList<T>.RemoveRange 方法

定義

多載

名稱 Description
RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

從清單中移除指定的物件。

RemoveRange(Int32, Int32)

從 IImmutableList<T>移除項目範圍。

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

來源:
IImmutableList.cs
來源:
IImmutableList.cs
來源:
IImmutableList.cs
來源:
SortedInt32KeyNode.Enumerator.cs

從清單中移除指定的物件。

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

參數

items
IEnumerable<T>

要從清單中移除的物件。

equalityComparer
IEqualityComparer<T>

用來判斷列表中是否 items 符合任何物件的等號比較器。

傳回

若與清單中的物件相符,則會移除指定的物件 items ,建立一個新的不可變清單。

適用於

RemoveRange(Int32, Int32)

來源:
IImmutableList.cs
來源:
IImmutableList.cs
來源:
IImmutableList.cs
來源:
SortedInt32KeyNode.Enumerator.cs

從 IImmutableList<T>移除項目範圍。

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

參數

index
Int32

要移除元素範圍的零基起始指標。

count
Int32

要移除的項目數目。

傳回

一個移除元素的新不變清單。

適用於