zoukankan      html  css  js  c++  java
  • Hello

     1 using System;
     2 using System.Linq;
     3 using System.Collections.Generic;
     4 
     5 class app
     6 {
     7     static void Main()
     8     {
     9         string[] names = { "Burke""Connor""Frank"
    10                        "Everett""Albert""George"
    11                        "Harris""David" };
    12 
    13         IEnumerable<string> expr = from s in names
    14                                    where s.Length == 5
    15                                    orderby s
    16                                    select s.ToUpper();
    17 
    18         IEnumerable<string> lsit = from s in names
    19                                    where s.Equals("Frank")
    20                                    select s.ToString();
    21 
    22         foreach (string item in expr)
    23             Console.WriteLine(item);
    24 
    25 
    26         Console.WriteLine(lsit.ToList<string>()[0]);
    27 
    28         Console.ReadLine();
    29     }
    30 }
    31 
  • 相关阅读:
    CSS+JS实现兼容性很好的无限级下拉菜单
    自动切换的JS菜单
    (2)C#连sqlite
    protobuf编译器
    (67) c# 序列化
    (66) c# async await
    (65)C# 任务
    mbatis 入门
    (64)C# 预处理器指令
    (63)C# 不安全代码unsafe
  • 原文地址:https://www.cnblogs.com/EasyLive2006/p/766196.html
Copyright © 2011-2022 走看看