Επεξεργασία

Κοινή χρήση μέσω


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

Definition

Removes the first occurrence of a specific object from the immutable list.

 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

Parameters

item
T

The object to remove.

Returns

true if item was successfully removed from the list; otherwise, false. This method also returns false if item is not found in the original list.

Implements

Exceptions

Always thrown.

Remarks

This member is an explicit interface member implementation. It can be used only when the ImmutableList<T> instance is cast to an ICollection<T> interface.

Applies to