您的位置:首页 > 其它

linq的使用

2011-05-05 21:05 106 查看
using System;
using System.Linq;
using System.Collections.Generic;

class Exapmple1_1
{
static void Main()
{
string[] names={"Burke","Connor","Frank",
            "Everett","Albert","George"};      
IEnumerable<string> expr = from s in names
where s.Length == 5
orderby s
select s.ToUpper();
foreach (string item in expr)
{
Console.WriteLine(item);
}
string s1 = Console.ReadLine();
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: