.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Code Snippets >> Generics >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Sort GenericList without Usign Linq

Posted By:Syed Shakeer Hussain       Posted Date: December 19, 2011    Points: 40    Category: Generics    URL: http://www.dotnetspark.com  

Following code shows you how to sort a GenericList

List<int> li = new List<int> {10, 1, 2, 3, 4, 5, 6 };

Console.WriteLine("\nSorting List");


foreach (int i in li)


 Console.WriteLine("{0}", i);



Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend