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 
  • 相关阅读:
    又见Dooyoul
    用premake编译跨平台opencv程序
    [try it] 使用Apache Ant
    用OllyDbg做破解
    什么是SEO
    SEO最新百度排名算法调整
    SEO网站外链的建设
    SEO网站title优化
    网站title优化应注意的细节
    [ios]设置ARC 【转】
  • 原文地址:https://www.cnblogs.com/EasyLive2006/p/766196.html
Copyright © 2011-2022 走看看