.NET 框架版本中对 C++/CLI 的改进
随着 .NET 框架的每个新版本的发布,C# 都有了实质性的功能和改进,并且在从 .NET1.0 到 .NET2.0 的升级中,托管 C++ 被 C++/CLI 取代,这是一个很大的改进。
自 .NET2.0 以来,C++/CLI 是否有任何改进?
There have been substantial features and improvements in C# with each new release of the .NET framework, and in the upgrade from .NET1.0 to .NET2.0, Managed C++ was replaced with C++/CLI, which was a great improvement.
Have there been any improvements in C++/CLI since .NET2.0?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请注意:Visual Studio 2010 不再支持 Intellisense对于 C++/CLI。
“虽然遗憾的是 C++/CLI 缺乏 Intellisense,但我们希望它仅代表源代码的一小部分,您不需要像本机代码那样经常编辑这些源代码。”
Be warned: Visual Studio 2010 no longer supports Intellisense for C++/CLI.
"While the lack of Intellisense for C++/CLI is unfortunate, we expect that it only represents a small portion of your source code that you don't need to edit nearly as often as the native code."
VC++ 2008 并没有为 C++/CLI 添加太多内容。 然而,2010 年将会添加很多新功能。 您可以在此处查看 VC++ 2010 中的改进 。
2010 Beta 版的一项重大改进是添加了 Lambda 表达式。
通过 && 引用 RValue 看起来很有希望(如果有时有点令人困惑),并且 auto 关键字 看起来它会简化很多事情。 它几乎是 C# var 关键字的 C++ 版本,它确实简化了 .NET 集合的使用。
其他添加的内容是 decltype 和 static_assert,它们看起来都很有用。
VC++ 2008 did not add much for C++/CLI. However, 2010 is going to add a lot of new features. You can see the improvements in VC++ 2010 here.
One major improvement in the 2010 beta is the addition of Lambda Expressions.
RValue referencing via && looks promising (if a bit confusing at times), and the auto keyword looks like it'll simplify quite a few things. It's pretty much the C++ version of C#'s var keyword, which really simplifies using .NET collections.
The other additions are decltype and static_assert, both of which look helpful.