Geeks With Blogs


Name: Guilherme Cardoso
Age: 19
Country: Portugal

Guilherme Cardoso, Blog EN .NET geek March 2011 Entries
LINQ - Order Randomly
I've seen a few guys asking on stack overflow and forums how to order randomly using LINQ.
Here's a simple solution using Guid:

OrderBy(x => System.Guid.NewGuid())

Posted On Wednesday, March 30, 2011 12:54 AM

Copyright © Guilherme Cardoso | Powered by: