IImmutableList<T>.RemoveRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RemoveRange(IEnumerable<T>, IEqualityComparer<T>) |
Removes the specified object from the list. |
RemoveRange(Int32, Int32) |
Removes a range of elements from the IImmutableList<T>. |
RemoveRange(IEnumerable<T>, IEqualityComparer<T>)
Removes the specified object from the list.
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)
Parameters
- items
- IEnumerable<T>
The objects to remove from the list.
- equalityComparer
- IEqualityComparer<T>
The equality comparer to use to determine if items
match any objects in the list.
Returns
A new immutable list with the specified objects removed, if items
matched objects in the list.
Applies to
RemoveRange(Int32, Int32)
Removes a range of elements from the 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)
Parameters
- index
- Int32
The zero-based starting index of the range of elements to remove.
- count
- Int32
The number of elements to remove.
Returns
A new immutable list with the elements removed.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈