LinkedList.Find(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the first node that contains the specified value.
public:
System::Collections::Generic::LinkedListNode ^ Find(T value);
public System.Collections.Generic.LinkedListNode Find(T value);
public System.Collections.Generic.LinkedListNode? Find(T value);
member this.Find : 'T -> System.Collections.Generic.LinkedListNode<'T>
Public Function Find (value As T) As LinkedListNode(Of T)
Parameters
- value
- T
The value to locate in the LinkedList
Returns
The first LinkedListNodenull.
Examples
For an example that includes this method, see the LinkedList
Remarks
The LinkedList
This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.