C#.NET和VB.NET有什么区别? [英] What is the difference between C#.NET and VB.NET?

查看:162
本文介绍了C#.NET和VB.NET有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#.NET和VB.NET有什么区别?

What is the difference between C#.NET and VB.NET?

推荐答案

两种做相同事情的方法,而不是非常特殊的事情,而c#是vb仍设法在该平台上运行,而语言主要针对.net.
two ways of doing the same things instead for very exceptional things, and c# is the language focused for .net while vb still manage to run on that platform


最终,个人喜好.两者都使用相同的代码库,并且都可以编译为相同的中间语言.您甚至可以使用通常链接到另一种语言的程序集:我编写了C#代码,该代码使用了Microsoft.VisualBasic中的方法.
根据我的经验,VB 稍微更具通用性,因为它可以执行一些非常不可思议的事情,如编写参考扩展,这是您在C#中无法做到的.总的来说,VB和C#之间的唯一区别是您最习惯使用哪种语言.
Ultimately, personal preference. Both use the same code base, and both compile into the same intermediate language. You can even use assemblies normally linked to the other language: I''ve written C# code that used methods found in Microsoft.VisualBasic.

In my experience, VB is slightly more versatile, in that it can do a few very arcane things that you cannot do in C#, like write reference extensions. By and large, though, the only difference between VB and C# is which language you are most comfortable using.


这个主题几天前在The Lounge中出现. 看看许多CP人的想法 [
This topic came up in The Lounge a few days ago. Have a look at what lots of CPians thought[^].


这篇关于C#.NET和VB.NET有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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