ImmutableArray<T>.RemoveRange 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RemoveRange(IEnumerable<T>) |
从此数组中移除指定的项。 |
RemoveRange(ImmutableArray<T>) |
从此列表中移除指定的值。 |
RemoveRange(IEnumerable<T>, IEqualityComparer<T>) |
从此数组中移除指定的项。 |
RemoveRange(ImmutableArray<T>, IEqualityComparer<T>) |
从此列表中移除指定的项。 |
RemoveRange(Int32, Int32) |
返回一个数组,其中位于指定位置的元素已被移除。 |
RemoveRange(ReadOnlySpan<T>, IEqualityComparer<T>) |
从此列表中移除指定的值。 |
RemoveRange(T[], IEqualityComparer<T>) |
从此列表中移除指定的值。 |
RemoveRange(IEnumerable<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
从此数组中移除指定的项。
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)
参数
- items
- IEnumerable<T>
在此列表中找到匹配项时要移除的项。
返回
已移除元素的新数组。
适用于
RemoveRange(ImmutableArray<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
从此列表中移除指定的值。
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)
参数
- items
- ImmutableArray<T>
在此列表中找到匹配项时要移除的项。
返回
已移除元素的新列表。
适用于
RemoveRange(IEnumerable<T>, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
从此数组中移除指定的项。
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)
参数
- items
- IEnumerable<T>
在此列表中找到匹配项时要移除的项。
- equalityComparer
- IEqualityComparer<T>
要在搜索中使用的相等性比较器。
返回
已移除元素的新数组。
适用于
RemoveRange(ImmutableArray<T>, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
从此列表中移除指定的项。
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)
参数
- items
- ImmutableArray<T>
在此列表中找到匹配项时要移除的项。
- equalityComparer
- IEqualityComparer<T>
要在搜索中使用的相等性比较器。
返回
已移除元素的新数组。
适用于
RemoveRange(Int32, Int32)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
返回一个数组,其中位于指定位置的元素已被移除。
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)
参数
- index
- Int32
要从数组中移除的起始元素的从 0 开始的索引。
- length
- Int32
要从数组中移除的元素数。
返回
已移除指定元素的新数组。
适用于
RemoveRange(ReadOnlySpan<T>, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
从此列表中移除指定的值。
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)
参数
- items
- ReadOnlySpan<T>
在此列表中找到匹配项时要移除的项。
- equalityComparer
- IEqualityComparer<T>
要在搜索中使用的相等性比较器。
返回
已移除元素的新列表。
适用于
RemoveRange(T[], IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
从此列表中移除指定的值。
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)
参数
- items
- T[]
在此列表中找到匹配项时要移除的项。
- equalityComparer
- IEqualityComparer<T>
要在搜索中使用的相等性比较器。
返回
已移除元素的新列表。