为什么 VB 中的代码片段比 C# 中的代码片段更有特色?

发布于 2024-10-08 15:20:41 字数 821 浏览 3 评论 0原文

当我读到时 http://msdn.microsoft.com/en-us/library/ms165394.aspx

对于VB:

在 Snippet 元素内,添加 参考文献元素和所有 必需的子元素添加 参考该项目时 片段已插入。

对于 C#

不要做的 Visual C# 代码片段 支持参考文献部分,所以 对 System.Windows.Forms.dll 的引用 必须手动添加到项目中

是什么根本原因阻止 C# 支持像 VB 这样的引用?

更新:我看到这篇文章 http://visualstudiogallery.msdn .microsoft.com/en-us/dc06b54c-b6c4-4cf5-8203-a09c6979e881

但它甚至不如代码片段引用功能齐全,因为代码片段引用允许您一次添加多个引用只是一一地。

据说 C# 比 VB.NET 更“专业”,人们会期望 C# 具有更多功能而不是受到更多限制,或者“专业”意味着您必须以“手动”的方式来完成它:p

C# 团队何时会赶上与 VB.NET 团队合作吗?

As I read
http://msdn.microsoft.com/en-us/library/ms165394.aspx:

For VB:

Inside the Snippet element, add the
References element and all of the
required child elements that add a
reference to the project when the
snippet is inserted.

For C#

Visual C# code snippets to do not
support the References section, so a
reference to System.Windows.Forms.dll
must be added to the project manually

What fundamental reason prevents C# to support References like VB ?

Update: I saw this posted http://visualstudiogallery.msdn.microsoft.com/en-us/dc06b54c-b6c4-4cf5-8203-a09c6979e881

But it isn't even as full-featured as Code Snippet References as Code Snippet References will allow you to add multiple references at once not just one by one.

C# is supposedly more "professional" than VB.NET, one would expect C# to be more featured not more limited or does "professional" means you have to do it the hard way as said "MANUALLY" :p

When will the C# team catch up with VB.NET team ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

往日 2024-10-15 15:20:41

C# IDE 团队的 Karen Liu 在 反馈报告

感谢您提交此建议。
我们已经意识到这一点并且
曾尝试做设计变更
之前请求。最终,基于
在我们原来的地方实施这个的成本
在产品周期中,我们做了
艰难的决定,因为参考文献
将是你需要的东西
只添加一次,这没有成功
进入VS2005。这就是我们
但希望将来能做的事情
听取对此的反馈很有价值。

只有九票赞成,不足以使其成为受欢迎的要求。我建议您投票赞成,他们确实注意到了这一点。

Karen Liu of the C# IDE team responded to this in a feedback report:

Thanks for submitting this suggestion.
This is something we are aware of and
had tried to do as a Design Change
Request before. Ultimately, based on
cost to implement this where we were
in the product cycle, we made the
tough decision that since references
would be something you would need to
add only once, this did not make it
into VS2005. This is something we are
looking to do in the future though and
hearing feedback on this is valuable.

Only nine upvotes, not enough to make it a popular request. I'd recommend you vote it up, they do pay attention to that.

爱人如己 2024-10-15 15:20:41

根本原因是 VB 认为该场景比 C# 对客户更有价值,因此投资了该功能。没有什么可以阻止 C# 添加该功能。当他们将它与其他 IDE 功能进行评估时,它根本不符合切割清单。

The fundamental reason is that VB thought the scenario had more value for their customers than C# did and hence invested in the feature. There is nothing preventing C# from adding the feature. It simply didn't meet the cut list when they evaluated it against other IDE fetaures.

魂牵梦绕锁你心扉 2024-10-15 15:20:41

出于政客的原因,恕我直言,C# 更“硬核”,而 VB 则更“让我们快速完成并签约 codemonkey 来完成它”。

因此,VB 程序员通常会坚持使用标准(普通安装)Visual Studio 安装,而 c#程序员将安装一个(或多个)插件(Resharper、Coderush 等),不包括额外的组件(Telerik、Devexpress..),除非 Visual Studio 至少有一个额外的代码辅助插件,否则 ac# 将无法工作。

politician reasons, IMHO C# is more "hardcore", while vb is more "let's do it quick and contract a codemonkey to do it.

So, a VB programmer usually will stick with a standard (vanilla install) visual studio installation, while a c# programmer will install one (or more) plugins (Resharper,Coderush,etc.) , not counting extra components (Telerik, Devexpress..), instead a c# will not work unless visual studio have at least one extra code assistance plugins.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文