ImmutableSortedSet<T>.ICollection<T>.Remove(T) 方法

定義

從集合中移除第一個出現的特定物件。

 virtual bool System.Collections.Generic.ICollection<T>.Remove(T item) = System::Collections::Generic::ICollection<T>::Remove;
bool ICollection<T>.Remove (T item);
abstract member System.Collections.Generic.ICollection<T>.Remove : 'T -> bool
override this.System.Collections.Generic.ICollection<T>.Remove : 'T -> bool
Function Remove (item As T) As Boolean Implements ICollection(Of T).Remove

參數

item
T

要從集合中移除的物件。

傳回

如果已順利從集合中移除 item 則為 true,否則為 false

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableSortedSet<T> 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

System.Collections.Immutable NuGet 套件

關於不可變集合以及如何安裝

適用於