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();
}
}
linq的使用
程序员文章站
2022-07-04 10:20:18
...
转载于:https://www.cnblogs.com/djcsch2001/archive/2011/05/05/2038251.html
上一篇: 【LINQ】Linq to SQL -- Where语句
下一篇: Vue中linq.js的使用