ImmutableList<T>.RemoveRange 方法
定义
重载
| RemoveRange(IEnumerable<T>, IEqualityComparer<T>) |
从此列表中移除指定的值。Removes the specified values from this list. |
| RemoveRange(IEnumerable<T>) |
从此不可变列表中移除一系列元素。Removes a range of elements from this immutable list. |
| RemoveRange(Int32, Int32) |
从此不可变列表中移除一系列元素,从指定的索引处开始,并包含指定数量的元素。Removes a range of elements, starting from the specified index and containing the specified number of elements, from this immutable list. |
RemoveRange(IEnumerable<T>, IEqualityComparer<T>)
从此列表中移除指定的值。Removes the specified values from this list.
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>
在此列表中找到匹配项时要移除的项。The items to remove if matches are found in this list.
- equalityComparer
- IEqualityComparer<T>
要在搜索中使用的相等性比较器。The equality comparer to use in the search.
返回
已移除元素的新列表。A new list with the elements removed.
适用于
RemoveRange(IEnumerable<T>)
从此不可变列表中移除一系列元素。Removes a range of elements from this immutable list.
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>
在此列表中找到匹配项时应删除其元素的集合。The collection whose elements should be removed if matches are found in this list.
返回
已移除元素的新列表。A new list with the elements removed.
适用于
RemoveRange(Int32, Int32)
从此不可变列表中移除一系列元素,从指定的索引处开始,并包含指定数量的元素。Removes a range of elements, starting from the specified index and containing the specified number of elements, from this immutable list.
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
要从其开始移除的起始索引。The starting index to begin removal.
- count
- Int32
要移除的元素数。The number of elements to remove.
返回
已移除元素的新列表。A new list with the elements removed.