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

Definition

Lägger till det angivna objektet i den oföränderliga listan.

 virtual void System.Collections.Generic.ICollection<T>.Add(T item) = System::Collections::Generic::ICollection<T>::Add;
void ICollection<T>.Add(T item);
abstract member System.Collections.Generic.ICollection<T>.Add : 'T -> unit
override this.System.Collections.Generic.ICollection<T>.Add : 'T -> unit
Sub Add (item As T) Implements ICollection(Of T).Add

Parametrar

item
T

Objektet som ska läggas till.

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