Monday 2 January 2012

sorted list in stack and queue

SortedList sl = new SortedList();
sl.Add("Stack", "Represents a LIFO collection of objects.");
sl.Add("Queue", "Represents a FIFO collection of objects.");
sl.Add("SortedList", "Represents a collection of key/value pairs.");
foreach (DictionaryEntry de in sl)
Console.WriteLine(de.Value);

No comments:

Post a Comment