Muokkaa

Jaa


IImmutableList<T>.RemoveRange Method

Definition

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>)

Source:
SortedInt32KeyNode.Enumerator.cs

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)

Source:
SortedInt32KeyNode.Enumerator.cs

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