Mega Code Archive

 
Categories / VB.Net / Data Structure
 

Create LinkedList(Of T) class that is empty

Imports System Imports System.Collections Imports System.Collections.Generic Public Class GenericCollection     Public Shared Sub Main()         Dim ll As New LinkedList(Of String)()         ll.AddLast("red")         ll.AddLast("orange")         ll.AddLast("yellow")         Console.WriteLine(ll.First.Value)         Console.WriteLine(ll.Last.Value)         For Each s As String In  ll             Console.WriteLine("   {0}", s)         Next s      End Sub  End Class