ImmutableArray<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>) |
Removes the specified items from this array. |
RemoveRange(ImmutableArray<T>) |
Removes the specified values from this list. |
RemoveRange(IEnumerable<T>, IEqualityComparer<T>) |
Removes the specified items from this array. |
RemoveRange(ImmutableArray<T>, IEqualityComparer<T>) |
Removes the specified items from this list. |
RemoveRange(Int32, Int32) |
Returns an array with the elements at the specified position removed. |
RemoveRange(ReadOnlySpan<T>, IEqualityComparer<T>) |
Removes the specified values from this list. |
RemoveRange(T[], IEqualityComparer<T>) |
Removes the specified values from this list. |
RemoveRange(IEnumerable<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Removes the specified items from this array.
public:
System::Collections::Immutable::ImmutableArray<T> RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items);
member this.RemoveRange : seq<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function RemoveRange (items As IEnumerable(Of T)) As ImmutableArray(Of T)
Parameters
- items
- IEnumerable<T>
The items to remove if matches are found in this list.
Returns
A new array with the elements removed.
Applies to
RemoveRange(ImmutableArray<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Removes the specified values from this list.
public:
System::Collections::Immutable::ImmutableArray<T> RemoveRange(System::Collections::Immutable::ImmutableArray<T> items);
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (System.Collections.Immutable.ImmutableArray<T> items);
member this.RemoveRange : System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function RemoveRange (items As ImmutableArray(Of T)) As ImmutableArray(Of T)
Parameters
- items
- ImmutableArray<T>
The items to remove if matches are found in this list.
Returns
A new list with the elements removed.
Applies to
RemoveRange(IEnumerable<T>, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Removes the specified items from this array.
public:
System::Collections::Immutable::ImmutableArray<T> RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.ImmutableArray<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.ImmutableArray<'T>
Public Function RemoveRange (items As IEnumerable(Of T), equalityComparer As IEqualityComparer(Of T)) As ImmutableArray(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 array with the elements removed.
Applies to
RemoveRange(ImmutableArray<T>, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Removes the specified items from this list.
public:
System::Collections::Immutable::ImmutableArray<T> RemoveRange(System::Collections::Immutable::ImmutableArray<T> items, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (System.Collections.Immutable.ImmutableArray<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (System.Collections.Immutable.ImmutableArray<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.RemoveRange : System.Collections.Immutable.ImmutableArray<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function RemoveRange (items As ImmutableArray(Of T), equalityComparer As IEqualityComparer(Of T)) As ImmutableArray(Of T)
Parameters
- items
- ImmutableArray<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 array with the elements removed.
Applies to
RemoveRange(Int32, Int32)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Returns an array with the elements at the specified position removed.
public:
System::Collections::Immutable::ImmutableArray<T> RemoveRange(int index, int length);
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (int index, int length);
member this.RemoveRange : int * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function RemoveRange (index As Integer, length As Integer) As ImmutableArray(Of T)
Parameters
- index
- Int32
The 0-based index of the starting element to remove from the array.
- length
- Int32
The number of elements to remove from the array.
Returns
The new array with the specified elements removed.
Applies to
RemoveRange(ReadOnlySpan<T>, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Removes the specified values from this list.
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (ReadOnlySpan<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer = default);
member this.RemoveRange : ReadOnlySpan<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function RemoveRange (items As ReadOnlySpan(Of T), Optional equalityComparer As IEqualityComparer(Of T) = Nothing) As ImmutableArray(Of T)
Parameters
- items
- ReadOnlySpan<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(T[], IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Removes the specified values from this list.
public System.Collections.Immutable.ImmutableArray<T> RemoveRange (T[] items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer = default);
member this.RemoveRange : 'T[] * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function RemoveRange (items As T(), Optional equalityComparer As IEqualityComparer(Of T) = Nothing) As ImmutableArray(Of T)
Parameters
- items
- 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
.NET