ImmutableList<T>.ICollection<T>.Remove(T) Metod

Definition

Tar bort den första förekomsten av ett specifikt objekt från den oföränderliga listan.

 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

Parametrar

item
T

Objektet som ska tas bort.

Returer

trueom item har tagits bort från listan, annars . false Den här metoden returnerar false även om item den inte finns i den ursprungliga listan.

Implementeringar

Undantag

Alltid kastad.

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen ImmutableList<T> skickas till ett ICollection<T> gränssnitt.

Gäller för