using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Test { class Test { static void Main() { Dictionary<string, string> wars = new Dictionary<string,string> () { {"WWI","1914-1918"}, {"WWII","1939-1945"}, {"Vietnam War","1955-1975"} }; var query=(from item in wars orderby item.Value descending select item.Value).ToList(); foreach (var i in query) { Console.WriteLine (i); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)