Created
March 25, 2009 15:53
-
-
Save nicolasblanco/85538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
class app { | |
static void Main() { | |
string[] names = { "Burke", "Connor", "Frank", | |
"Everett", "Albert", "George", | |
"Harris", "David" }; | |
IEnumerable<string> query = from s in names | |
where s.Length == 5 | |
orderby s | |
select s.ToUpper(); | |
foreach (string item in query) | |
Console.WriteLine(item); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment