ImmutableList<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 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>)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
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)
Parameters
- 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.
Returns
A new list with the elements removed.
Applies to
RemoveRange(IEnumerable<T>)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
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)
Parameters
- items
- IEnumerable<T>
The collection whose elements should be removed if matches are found in this list.
Returns
A new list with the elements removed.
Applies to
RemoveRange(Int32, Int32)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
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)
Parameters
- index
- Int32
The starting index to begin removal.
- count
- Int32
The number of elements to remove.
Returns
A new list with the elements removed.
Applies to
.NET