C# 6.0 Feature list
| Feature | Example | C# | VB |
|---|---|---|---|
| Auto-property initializers | public int X { get; set; } = x; | Added | Exists |
| Getter-only auto-properties | public int Y { get; } = y; | Added | Added |
| Ctor assignment to getter-only autoprops | Y = 15 | Added | Added |
| Parameterless struct ctors | Structure S : Sub New() : End Sub : End Structure | Added | Added |
| Using static members | using System.Console; … Write(4); | Added | Exists |
| Dictionary initializer | new JObject { ["x"] = 3, ["y"] = 7 } | Added | No |
| Await in catch/finally | try … catch { await … } finally { await … } | Added | No |
| Exception filters | catch(E e) if (e.Count > 5) { … } | Added | Exists |
| Partial modules | Partial Module M1 | N/A | Added |
| Partial interfaces | Partial Interface I1 | Exists | Added |
| Multiline string literals | "Hello<newline>World" | Exists | Added |
| Year-first date literals | Dim d = #2014-04-03# | N/A | Added |
| Line continuation comments | Dim addrs = From c in Customers ' comment | N/A | Added |
| TypeOf IsNot | If TypeOf x IsNot Customer Then … | N/A | Added |
| Expression-bodied members | public double Dist => Sqrt(X * X + Y * Y); | Added | No |
| Null propagation | customer?.Orders?[5]?.$price | Added | Added |
| String interpolation | $"{p.First} {p.Last} is {p.Age} years old." | Added* | Planned |
| nameof operator | string s = nameof(Console.Write); | Added* | Planned |
| #pragma | #Disable Warning BC40008 | Added | Added |
| Smart name resolution | N/A | Added | |
| ReadWrite props can implement ReadOnly | Exists | Added | |
| #region inside methods | Exists | Added | |
| Overloads inferred from Overrides | N/A | Added | |
| CObj in attributes | Exists | Added | |
| CRef and parameter name | Exists | Added | |
| Extension Add in collection initializers | Added | Exists | |
| Improved overload resolution | Added | N/A |
C# 6.0 Feature list的更多相关文章
- redis3.0配置文件详解
redis.conf #redis.conf # Redis configuration file example. # ./redis-server /path/to/redis.conf #### ...
- Git学习笔记(6)——Bug和Feature分支
本文主要记录了通过Git来调试Bug和添加新的功能,也就是Bug分支和Feature分支,以及分支的推送. Bug分支 通过Git,我们可以为每个Bug建立一个分支,Bug修复后,合并分支,然后将临时 ...
- redis3.0.7集群部署手册
1.用root登录主机2.将redis-3.0.7.tar.gz传送到主机3.将rubygems-update-2.5.2.gem,redis-3.0.0.gem传送到主机4.解压redis-3.0. ...
- Install OpenCV 3.0 and Python 2.7+ on OSX
http://www.pyimagesearch.com/2015/06/15/install-OpenCV-3-0-and-Python-2-7-on-osx/ As I mentioned las ...
- redis-4.0.8 配置文件解读
# Redis configuration file example.## Note that in order to read the configuration file, Redis must ...
- 009-docker-安装-redis:5.0.3
1.搜索镜像 docker search redis 2.拉取合适镜像 docker pull redis:5.0.3 docker images 3.使用镜像 docker run -p 6379: ...
- 关于微博开放平台Oauth2.0接入网站应用
关于什么是微博开放平台及微博开放平台能做什么,咱就不做搜索引擎的搬运工了 这里直接给个链接介绍:微博开放平台 本文只是抛砖引玉,讲讲微博开放平台的基本用法,适合没接触过开放平台的朋友入门学习,老鸟就略 ...
- redis5.0主从配置
1.下载 wget http://download.redis.io/releases/redis-5.0.3.tar.gz .tar.gz cd redis- make make test //检查 ...
- MyEclipse WebSphere开发教程:安装和更新WebSphere 6.1, JAX-WS, EJB 3.0(一)
你开学,我放价!MyEclipse线上狂欢继续!火热开启中>> [MyEclipse最新版下载] MyEclipse支持Java EE技术(如JAX-WS和EJB 3.0),它们以功能包的 ...
随机推荐
- Sql server 2008镜像配置步骤
下面主要是2008 MSSQL的一个镜像安装步骤,使用到的工具是mssql自带的Management Studio purpose : SQL SERVER 2008 mirror configura ...
- jQuery晦涩的底层工具方法们
这里整理的是jQuery源码中一些比较晦涩难懂的.内部的.最底层的工具方法,它们多为jQuery的上层api方法服务,目前包括: jQuery.access jQuery.access: functi ...
- A ship is always safe at the shore - but that is not what it is built for.
A ship is always safe at the shore - but that is not what it is built for. 船靠岸边总是安全的,但那不是建造它的目的.
- 前端之CSS(二)
一.盒子模型 说到盒子模型,我们不得不提一下,W3C标准和IE浏览器是有区别的,我昨天就在写抽屉作业的时候踩过坑,建议用谷歌浏览器,并推荐一篇博文:http://www.osmn00.com/tran ...
- 2017年1月3日 星期二 --出埃及记 Exodus 21:29
2017年1月3日 星期二 --出埃及记 Exodus 21:29 If, however, the bull has had the habit of goring and the owner ha ...
- nodejs路由的部分通配
1. 占位标识符/:id app.get('/post_api_post_data_ren/bet/follow/:gameEn',function(req,res){ console.log(req ...
- jQuery学习笔记(二)jQuery中DOM操作
目录 DOM操作分类 jQuery中的各种DOM操作 查找节点 创建节点 删除节点 复制节点 替换节点 包裹节点 属性操作 样式操作 对HTML.文本和值的操作 遍历节点 CSS-DOM操作 小结 本 ...
- CentOS 7.2.1511编译安装Nginx1.10.1+MySQL5.6.33+PHP5.6.26
准备篇 一.防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.se ...
- Spark HA实战
Spark HA需要安装zookeeper,推荐稳定版3.4.6. 1.下载zookeeper3.4.6,2.配置环境变量3.创建data logs4.vi conf/zoo.cfg5 data目录中 ...
- ASP.NET中cookie与Fiter实现简单登陆,AllowAnonymous匿名登陆
向服务器发送cookie 在登陆的时候,我们可以可以通过下列代码,向服务器发送cookie,其中包括自己的账号信息(不涉及加密),用以后面判断访问者. HttpCookie cookie = new ...