我可以在带有 .Net 4.5 的 C# 5 中做哪些在带有 .Net 4 的 C# 4 中无法做到的事情?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11548373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 18:14:20  来源:igfitidea点击:

What can I do in C# 5 with .Net 4.5 that I couldn't do in C# 4 with .Net 4?

c#.net.net-4.5c#-5.0asp.net-4.5

提问by JMK

I have Visual Studio 2012 RC installed on Windows 8 Release Preview and my question is are there any useful new features not related to Metro, or is Metro what seperates .Net 4 and .Net 4.5?

我在 Windows 8 Release Preview 上安装了 Visual Studio 2012 RC,我的问题是是否有任何与 Metro 无关的有用新功能,或者 Metro 是否将 .Net 4 和 .Net 4.5 分开?

采纳答案by svick

See What's New in the .NET Framework 4.5and What's New for Visual C# in Visual Studio 2012.

请参阅.NET Framework 4.5 中的新增功能Visual Studio 2012 中 Visual C# 的新增功能

The biggest new feature of C# 5.0 is better support for asynchronous operations, using the new awaitkeyword.

C# 5.0 最大的新特性是更好地支持异步操作,使用了 newawait关键字。