ImmutableList<T>.Remove 方法

定義

多載

Remove(T)

從這個不可變清單中移除指定物件的第一個符合元素。

Remove(T, IEqualityComparer<T>)

從這個不可變清單中移除第一個符合指定值的物件。

Remove(T)

來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
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>)

來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
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>

搜尋中所使用的相等比較子。

傳回

新的清單已移除物件,或是指定的物件已不存在於此清單則為此清單。

適用於