C#与VB.NET编程 [英] C# vs VB.NET Programming

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

问题描述

最强大的.NET编程语言是什么? C#还是VB.NET?

What is the most powerful .NET Programming Language? C# or VB.NET?

推荐答案

:笑:都不行!

这两种语言(几乎全部)在功能上是等价的-实际上,有自动语言翻译器(例如 http ://www.developerfusion.com/tools/convert/vb-to-csharp/ [ ^ ])可以随意翻译.

由于它们都使用.NET框架,因此它们在功能"上几乎是等效的.有一种观念认为VB是针对儿童的,而C#是针对成人的.这并不是完全正确的,因为您可以使用C#进行任何操作,也可以在VB中进行操作,但是...
:laugh: Neither!

THe two languages are (almost entirely) equivelent in function - in fact there are automatic language translators (such as http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]) which can translate one to the other at will.

Since they both use the .NET framework, they are pretty much equivalent in "power". There is a perception that VB is for children, and C# for adults however. It''s not strictly true, since anything you can do in C# you can do in VB as well, but...


要添加到Griff;它们几乎"相等.

VB.NET具有Xml文字,而C#没有.您可以在 Wikipedia [
从权力"的角度来看;他们真的是平等的.两者都转换为IL,并在同一VM上运行.大多数功率由于编程效率低下而丢失,这是大多数瓶颈.

如果需要电源,请使用C.
To add to Griff; they''re "almost" equals.

VB.NET has Xml Literals, which C# doesn''t have. You can find the complete list on the Wikipedia[^].

From my personal experience, I''d add that VB.NET is very easy to learn, and there are enough programmers available to form a decent team. There are a lot of books and online resources. C# is less elaborate than VB, and has my preference; it uses the minimum amount of characters to convey the concept that''s coded, and prohibits some of the "bad habits" that gave VB it''s reputation; for example, there will never be an "on error resume next" in C#.

From the "power" viewpoint; they''d really be equals. Both translate to IL, and run on the same VM. Most power gets lost due to inefficient programming, there''s most of the bottleneck.

If you need power, use C.


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

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