程序居然可以这样写:
using System;
using System.Query;
using System.Collections.Generic;

class app {
  
static void Main() {
    
string[] names = { "Burke""Connor""Frank"
                       
"Everett""Albert""George"
                       
"Harris""David" };

    IEnumerable
<string> expr = from s in names 
                               where s.Length 
== 5
                               orderby s
                               select s.ToUpper();

    
foreach (string item in expr)
      Console.WriteLine(item);
  }
}
太强了!!!

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2021-09-15
  • 2022-01-31
  • 2022-02-15
  • 2022-01-07
  • 2021-12-08
  • 2021-08-08
猜你喜欢
  • 2021-12-23
  • 2021-07-30
  • 2021-10-23
  • 2021-09-26
  • 2021-07-26
  • 2022-12-23
  • 2021-10-13
相关资源
相似解决方案