我已经听说/阅读了很多有关 C# 4 的新语言增强功能的信息。我有点好奇这些相同的增强功能是否也将应用于 VB,或者什么。有谁知道我可以在这里获得一些见解?随着 C# 发生的所有新变化,似乎没有什么理由继续使用 VB,除非您碰巧喜欢这种语法。这次 MS 没有对 VB 进行的增强是否包含在 C# 中,反之亦然?
最佳答案
我实际上忽略了 Lou Franco 对 VB.Net 的解雇。结帐 Panopticon Central:
- http://www.panopticoncentral.net/archive/2008/10/31/24803.aspx
- http://www.panopticoncentral.net/archive/2008/10/29/24764.aspx
例如:
Then Lucian did a really wonderful demo of VB 10.0, which is shipping in Visual Studio 2010. He showed (IIRC) the following features that should be familiar to the readers of this blog: array literals, collection initializers, automatic properties, implicit line continuations, statement lambdas, generic variance, and a feature that embeds primary interop assembly types in your assembly so you don’t have to deploy the PIA. I may have missed some, so check out the video when it’s posted!
关于c# - 新的 vb.net 增强功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/259273/