Mid
From PDF
Collections
C# Collections
How would you remove an element from a LinkedList<T>?
Use Remove(value) to remove the first occurrence of the specified value, or
RemoveFirst() / RemoveLast() to remove from the start or end respectively.
numbers.Remove(10); // Removes the first node with value 10
numbers.RemoveFirst(); // Removes the first node
numbers.RemoveLast(); // Removes the last node
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png