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

定義

從此清單中移除指定的值。

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

清單上的物品類型。

參數

list
IImmutableList<T>

搜尋清單。

value
T

要移除的值。

傳回

一個移除該元素的新不變清單,若該元素不在列表中,則使用此清單。

適用於