Total Pageviews

Wednesday, October 3, 2012

Sorting a Dictionary via a list


Sample of sorting a dictionary


  Dictionary dictionary = new Dictionary();
            dictionary.Add(0,"cat");
            dictionary.Add(1,"dog");
            dictionary.Add(2,"Tiger");
            dictionary.Add(3,"Rat");
           
            //// Sort the dictionary
            List> result = new List>(dictionary);
            result.Sort(delegate(KeyValuePair first, KeyValuePair second) 
            {
                return first.Value.CompareTo(second.Value);
            });

Monday, March 19, 2012

History vs Aliens

There are wonderful and curios couple of videos on history channel. It is all about the unimaginable creations of history.

Sunday, February 19, 2012

ASP.NET Inline coding

http://weblogs.asp.net/ahmedmoosa/archive/2010/10/06/embedded-code-and-inline-server-tags.aspx