ImmutableList<T>.Remove 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Remove(T) |
从此不可变列表中删除指定对象的第一个匹配项。 |
| Remove(T, IEqualityComparer<T>) |
从此不可变列表中删除与指定值匹配的对象的第一个匹配项。 |
Remove(T)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
从此不可变列表中删除指定对象的第一个匹配项。
public:
System::Collections::Immutable::ImmutableList<T> ^ Remove(T value);
public System.Collections.Immutable.ImmutableList<T> Remove(T value);
member this.Remove : 'T -> System.Collections.Immutable.ImmutableList<'T>
Public Function Remove (value As T) As ImmutableList(Of T)
参数
- value
- T
要删除的对象。
返回
删除了对象的新列表;如果指定的对象不在此列表中,则为此列表。
适用于
Remove(T, IEqualityComparer<T>)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
从此不可变列表中删除与指定值匹配的对象的第一个匹配项。
public:
System::Collections::Immutable::ImmutableList<T> ^ Remove(T value, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.ImmutableList<T> Remove(T value, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.ImmutableList<T> Remove(T value, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.Remove : 'T * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Remove (value As T, equalityComparer As IEqualityComparer(Of T)) As ImmutableList(Of T)
参数
- value
- T
要从列表中删除的元素的值。
- equalityComparer
- IEqualityComparer<T>
在搜索中使用的相等比较器。
返回
删除了对象的新列表;如果指定的对象不在此列表中,则为此列表。