Linq List

Random Sort a List Using LINQ

LINQ (Language Integrated Query) is a one of very useful feature of .net 3.5 framework. This allows you to query objects and perform complex operations simply and efficiently. There are lots of trick which can be used with the help of LINQ. In this article I am explaining how can we random sort a List using LINQ

Random Sort

Consider the below Employee class:

This is how you can randomly sort the List<Employee> object:

This is how you can randomly sort the List<Employee> object:

 

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.