ImmutableArray<T>.RemoveRange Method

Definition

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(System.Collections.Generic.IEnumerable<T> items);

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

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(System.Collections.Immutable.ImmutableArray<T> items);

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

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);

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

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(System.Collections.Immutable.ImmutableArray<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(System.Collections.Immutable.ImmutableArray<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);

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

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(int index, int length);

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

.NET 10 och andra versioner
Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(ReadOnlySpan<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer = default);

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

.NET 10 och andra versioner
Produkt Versioner
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

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.

C#
public System.Collections.Immutable.ImmutableArray<T> RemoveRange(T[] items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer = default);

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 10 och andra versioner
Produkt Versioner
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)