其中哪个"C#实验语言功能"这是? [英] Which "C# Experimental language feature" is this?
本文介绍了其中哪个"C#实验语言功能"这是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在下面的示例中,Resharper在第一个花括号上显示了"C#实验语言功能"工具提示.我检查了C#6.0的新功能,但没有遇到类似的功能.所谓的实验功能是什么?
In the example below, Resharper shows "C# Experimental language feature" tooltip on the first curly bracket. I've checked the new features of C# 6.0 but didn't come across a similar one. What is the referred experimental feature?
class Class1
{
{ // <= C# Experimental language feature
}
}
注意:.Net Framework 4.5编译器错误.
Note: It is an error for .Net Framework 4.5 compiler.
类,结构或接口成员声明中的无效令牌'{'"
"Invalid token '{' in class, struct, or interface member declaration"
推荐答案
此是,用于剪切.
This was for Primary Constructors, a feature which has now been cut from C#6.
这篇关于其中哪个"C#实验语言功能"这是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文