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 匿名类型.

优质内容筛选与推荐>>
1、svn报错Can‘t install ‘*‘ from pristine store, because no checksum is recorded for this file
2、Layout conventions
3、Pytorch 分割模型构建和训练【直播】2019 年县域农业大脑AI挑战赛---(四)模型构建和网络训练
4、python-集合
5、GridView九宫图


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号