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

前端之家收集整理的这篇文章主要介绍了为什么VB中的代码片段比C#更具特色?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我读的时候
http://msdn.microsoft.com/en-us/library/ms165394.aspx

对于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.

对于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

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

更新:我看到这个发布于http://visualstudiogallery.msdn.microsoft.com/en-us/dc06b54c-b6c4-4cf5-8203-a09c6979e881

但它甚至不像Code Snippet References那样功能齐全,因为Code Snippet References允许您一次添加多个引用,而不是一个一个.

据说C#比VB.NET更“专业”,人们会期望C#更具特色而不是更有限,或者“专业”意味着你必须像“手工”那样艰难地做到这一点:p

C#团队什么时候能赶上VB.NET团队?

C#IDE团队的Karen Liu在 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.

只有九个upvotes,不足以使它成为一个受欢迎的请求.我建议你投票,他们确实注意到这一点.

猜你在找的VB相关文章