Posted by: joachimvandenbogaert | June 20, 2008

Simple Linq Query

I was looking for a query with dot-syntax that could simply sort an array of strings and was an alias of

from s in strings
orderby s descending

Found it here:
http://community.bartdesmet.net/blogs/bart/archive/2006/07/04/4115.aspx

var selection = strings.OrderBy(s => s);

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: