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 
  • 相关阅读:
    Mac environment setting
    详解nginx.conf文件配置项(包括负载均衡)
    检查windows端口被占用
    linux下的环境变量
    利用MVC思想和php语言写网站的心得
    React学习:列表&&Key
    React学习:条件渲染
    事件处理
    state&生命周期
    react学习:组件&props
  • 原文地址:https://www.cnblogs.com/EasyLive2006/p/766196.html
Copyright © 2011-2022 走看看