C# LinkedList FindLast
Description
LinkedList
finds the last node that
contains the specified value.
Syntax
LinkedList.FindLast
has the following syntax.
public LinkedListNode<T> FindLast(
T value
)
Parameters
LinkedList.FindLast
has the following parameters.
value
- The value to locate in the LinkedList.
Example
using System;/*from w w w .jav a2 s . c o m*/
using System.Collections;
using System.Collections.Generic;
public class GenericCollection
{
public static void Main()
{
LinkedList<String> ll = new LinkedList<String>();
ll.AddLast( "A" );
ll.AddLast( "B" );
ll.AddLast( "C" );
ll.AddLast( "java2s.com" );
LinkedListNode<String> t = ll.FindLast("A");
}
}