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 
  • 相关阅读:
    hdu 3268 09 宁波 现场 I
    hdu 3697 10 福州 现场 H
    CodeForces Round #521 (Div.3) D. Cutting Out
    #Leetcode# 226. Invert Binary Tree
    zufe 蓝桥选拔
    #Leetcode# 100. Same Tree
    #Leetcode# 6. ZigZag Conversion
    PAT 1084 外观数列
    #Leetcode# 38. Count and Say
    #Leetcode# 22. Generate Parentheses
  • 原文地址:https://www.cnblogs.com/EasyLive2006/p/766196.html
Copyright © 2011-2022 走看看