Remove()

LinkedList::Remove(const T&) method

Removes first occurance of the specified element from list.

bool System::Collections::Generic::LinkedList<T>::Remove(const T &element) override

Arguments

ParameterTypeDescription
elementconst T&Element to remove.

Return Value

True if element was found and removed, false otherwise.

LinkedList::Remove(const SharedPtr<LinkedListNode<T>>&) method

Removes node from list.

void System::Collections::Generic::LinkedList<T>::Remove(const SharedPtr<LinkedListNode<T>> &node)

Arguments

ParameterTypeDescription
nodeconst SharedPtr<LinkedListNode<T>>&Node to remove.

See Also