VB.net对C#.NETVB、net、NET

2023-09-03 00:42:59 作者:张扬 Dreams▼

我在C,C ++和Visual Basic非常好。 我应该学会VB.net或C#.NET?我发现,这是可以使用Visual Studio编译VB和C#应用程序。这是否意味着这两种语言都是一样的,但是不同了Syntex?

i am very good in c,c++ and visual basic. should i learn VB.net or c#.net? i found that it is possible to use visual studio to compile both VB and C# applications. does this mean that both languages are the same but with different syntex?

推荐答案

这两种语言都非常相似的功能明智的。有一些小的差异,例如C#支持指针和不安全code和VB.net支持XML的文字。

Both languages are very similar feature wise. There are a few smaller differences, for example C# supports pointers and unsafe code, and VB.net supports XML-Literals.

但主要是这其中只有一个选择,语法,preFER。

But mainly it's just a choice of which syntax you prefer.

和我想你会发现更多的样品code C#编写的,但其转换为VB应该是微不足道的。

And I think you'll find more sample code written in C#, but converting it to VB should be trivial.

此外,由于语言是如此的相似,一旦你知道一个你可以学习其他在几天之内。

And since the languages are so similar once you know one you can learn the other in a matter of days.

和微软打算保持语言关闭功能明智: VB和C#共同进化

And Microsoft intends to keep the languages close feature-wise: VB and C# co-evolution