关于vb.net和c#.net的主要区别 [英] Major difference about vb.net and c#.net

查看:64
本文介绍了关于vb.net和c#.net的主要区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我需要vb.net和c#.net之间的主要区别,就像您自己的观点一样.

我不需要任何关于这种差异的链接.我只需要一点.........
以及适用于vb.net和c#.net的简单差异程序.........

Hi,


I need major difference between vb.net and c#.net like points of your own.

I no need any link regarding this difference.I need Only points.........
and simple difference program for both vb.net and c#.net...........

推荐答案

Semicolons.

VB不使用'em.

除此之外,它们几乎可以直接比较.
请参阅MSDN: Visual Basic .NET和Visual C#.NET之间的区别 [
Semicolons.

VB doesn''t use ''em.

Other than that, they are pretty much directly comparable.
See MSDN: Differences Between Visual Basic .NET and Visual C# .NET[^]

Next time, use Google and do at least basic research yourself!


我想知道为什么您没有任何解决方案链接. C#和VB.Net之间的区别并不是我一个人需要发现的谜.很多人都在努力列出我可以在此处复制的差异而不是给出链接,但这是可以忽略的.希望您能理解.至于语法,它们几乎可以直接比较.

有所不同,
1. VB.NET在不使用C#的情况下不区分大小写.
2.在C#中用&&"表示的布尔AND,在VB.Net中使用"AndAlso"或"And".这里的"AndAlso"和"And"对于可用性具有不同的含义.
3. VB.Net中允许使用可选参数,但C#中不允许使用

一些有用的链接,
VB.NET和C#的完全比较 [ ^ ]

http://www.dotnetfunda.com/articles/article601-difference-between- csharp-and-vbnet.aspx [ ^ ]
I am wondering why you don''t any solution link. The difference between C# and VB.Net is not a mystery that I need to discover alone. There are lot of people took the effort to list the difference which I can copy past here instead of giving the link, but that would be disregardful. I hope you understand that. As for the syntax they are pretty much directly comparable.

Some difference,
1. VB.NET is case insensitive where C# is not.
2. Boolean AND expressed with ''&&'' in C# where ''AndAlso'' or ''And'' is used in VB.Net. Here ''AndAlso'' and ''And'' have different meaning as for the usability.
3. Optional parameter is allowed in VB.Net but not in C#

Some usefully links,
Complete Comparison for VB.NET and C#[^]

http://www.dotnetfunda.com/articles/article601-difference-between-csharp-and-vbnet.aspx[^]


这篇关于关于vb.net和c#.net的主要区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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