ImmutableList.Remove<T>(IImmutableList<T>, T) 方法

定义

从此列表中移除指定的值。Removes the specified value from this list.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::IImmutableList<T> ^ Remove(System::Collections::Immutable::IImmutableList<T> ^ list, T value);
public static System.Collections.Immutable.IImmutableList<T> Remove<T> (this System.Collections.Immutable.IImmutableList<T> list, T value);
static member Remove : System.Collections.Immutable.IImmutableList<'T> * 'T -> System.Collections.Immutable.IImmutableList<'T>
<Extension()>
Public Function Remove(Of T) (list As IImmutableList(Of T), value As T) As IImmutableList(Of T)

类型参数

T

列表中项的类型。The type of items in the list.

参数

list
IImmutableList<T>

要搜索的列表。The list to search.

value
T

要移除的值。The value to remove.

返回

已移除元素的新不可变列表,或者此列表(如果该元素不在此列表中)。A new immutable list with the element removed, or this list if the element is not in this list.

适用于