为什么用()构造不包括在C#中,当它真的很酷在VB.NET? [英] Why is the with() construct not included in C#, when it is really cool in VB.NET?

查看:147
本文介绍了为什么用()构造不包括在C#中,当它真的很酷在VB.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#开发。我真的很喜欢花括号,因为我是从C,C ++和Java的背景来了。不过,我也很喜欢.NET家族的其他编程语言,如VB.NET。来回切换C#和VB.NET之间是不是真的那么大不了的,如果你已经被编程为.NET一段时间。这是该公司在我工作很常见的做法。由于C#的家伙,我真的很喜欢用VB.NET编译器提供的XML文本和关键字。我希望微软已经包含在C#中这些功能也。

I am C# developer. I really love the curly brace because I came from C, C++ and Java background. However, I also like the other programming languages of the .NET Family such as VB.NET. Switching back and forth between C# and VB.NET is not really that big of deal if you have been programming for a while in .NET. That is very common approach in the company where I work. As C# guy, I really like the XML literal and with keywords provided by the VB.NET compiler. I wish Microsoft had included those features in C# also.

我只是好奇,还有什么其他开发商不得不说一下吧!

I am just curious , what other developer has to say about it!

推荐答案

我也不会感到惊讶,如果有或类似的功能添加到C#最终连同其他流行的迄今仅VB功能。有很多在C#4.0预览演示谈话最近在PDC和增加的聚焦语言平等开始,C#4.0和VB 10的其他地方。

I wouldn't be suprised if "With" or a similar feature is added to C# eventually along with other heretofore popular exclusively VB features. There was a lot of talk in the C# 4.0 preview presentations recently at PDC and elsewhere of the increased "focus on language parity" starting with C# 4.0 and VB 10.

这篇关于为什么用()构造不包括在C#中,当它真的很酷在VB.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆