zoukankan      html  css  js  c++  java
  • C#3.0高级特性 New C#3 Language Features

    1.Linq
    2.Extension Methods
    3.Lambda Methods


    string [] names=new string[]{"bill","Jane","Bob"};

    IEnumberable<string> bs=name.Where<string>(
    deletegate(string s){ return s.StartWith("b"); }
    );


    等同于: IEnumberable<string> bs=names.Where( n => n.StartWith("b") );

    4.Generic Type Inference
    5.Automatic properties
    6.Object and Collection Initializers
    7.Type Inference 类型推断
    e.g.: var now=new DateTime(2001,1,1); // The variable takes the type Datetime
    8. Anynymous Types 匿名类型.

  • 相关阅读:
    Hibernate初学
    表分区
    单列函数
    Oracle基础
    8.28
    SpringMVC
    SpringMVC 初级操作
    试题评测
    Mybatis

  • 原文地址:https://www.cnblogs.com/wucg/p/1910072.html
Copyright © 2011-2022 走看看