Get the first node of the LinkedList in CSharp
Description
The following code shows how to get the first node of the LinkedList.
Example
using System;//from w w w. j av a 2s . com
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" );
Console.WriteLine( "The item in the list is {0}.", ll.First.Value );
}
}