ImmutableArray<T>.Builder.RemoveRange Method

Definition

Overloads

RemoveRange(Int32, Int32)

Removes the specified values from this list.

RemoveRange(IEnumerable<T>)

Removes the specified values from this list.

RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

Removes the specified values from this list.

RemoveRange(Int32, Int32)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Removes the specified values from this list.

public void RemoveRange (int index, int length);

Parameters

index
Int32

The 0-based index into the array for the element to omit from the returned array.

length
Int32

The number of elements to remove.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RemoveRange(IEnumerable<T>)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Removes the specified values from this list.

public void RemoveRange (System.Collections.Generic.IEnumerable<T> items);

Parameters

items
IEnumerable<T>

The items to remove if matches are found in this list.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Removes the specified values from this list.

public void 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. If null, Default is used.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)