在VB.NET上使用C#的理由 [英] Justification of using C# over VB.NET

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

问题描述






我正在开始一个新的项目来开发Windows应用程序运行

。 NET框架工作。你能不能给我一些理由来向管理层提出我们为什么要在Visual Basic .NET上使用C#的原因。

现在我们不要有任何为.NET编写的代码,这个

将是一个新项目。


我更喜欢C#,因为我的编程背景是C#/ C ++ / C / Pro

C和Java。


提前谢谢。


杰克


Hi,

I''m starting on a new project to develop Windows application run on
the .NET Frame work. Would you please give me some justifications to
present to management on why we should use C# over Visual Basic .NET.

Right now we don''t have any code written for the .NET yet and this
would be a new project.

I preferred C# because my background in programming is in C#/C++/C/Pro
C and Java.

Thank you in advance.

Jack

推荐答案

嗨杰克,
Hi Jack,
我更喜欢C#,因为我的编程背景是C#/ C ++ / C / Pro < br和C和Java。
I preferred C# because my background in programming is in C#/C++/C/Pro
C and Java.



很好的理由,还有更多。


Cor


Good reason, there are not more.

Cor


Hello Jack


小事如:


C#有XML Comment选项,VB.NET就不能do。

C#编译器有更多错误和警告,例如它会检测你是否有部分

代码无法访问。

C#是一种原生的.NET语言。在VB.NET中你有几种方法可以做同样的事情,因为它有历史,例如:循环......同时/结束时。并且

CInt(myString)/Convert.ToInt32(myString)。


VB.NET有后台编译,这很棒,但需要快速的机器。

VB.NET有自动代码缩进(在C#中你必须删除并再次键入

结尾}。

我的意见VB。 NET程序员可能会更便宜,但更专注于RAD上的
。 C#开发人员可能更专注于编程。


在下一版本的VS.NET中,C#是一种优秀的语言,因为它具有

refractoring和VB.NET没有。 VB.NET应该是唯一的语言

会得到编辑并继续...但我看起来像C#这样得到这个

井。 />

随着你的背景,我会随时选择C#。有了VB.NET背景我将会选择C#,如果我要编写大解决方案,花14天时间学习C#和VB.NET之间的差异
(我花了3天时间!)。


顺便说一句:我是VB.NET开发者。


PS:我很乐意如果微软同步这两种语言,所以这些小的东西是选择一种语言而不是另一种语言的理由。


Thomas

" ;杰克" < jack_z28NOSPAM.yahoo.com@>在消息中写道

news:jf ******************************** @ 4ax.com ...
Hello Jack

Small things like:

C# has XML Comment option, which VB.NET just can''t do.
The C# compiler has more errors and warnings e.g. it detects if part of you
code is not reachable.
C# is a native .NET language. In VB.NET you have several way of doing the
same things, because it history, e.g. Loop... While/End While. And
CInt(myString)/Convert.ToInt32(myString).

VB.NET has background compile, which is great but requires a fast machine.
VB.NET has automatic code indent (in C# you have to delete and type the
ending } again).
I my opinion VB.NET programmers are likely to be cheaper, but more focused
on RAD. C# Developers are likely to be more dedicated to programming.

In the Next Version of VS.NET C# is a superior language, because it has
refractoring and VB.NET has not. VB.NET was supposed to be the only language
which would get Edit-And-Continue... but I look likes C# is getting this as
well.

With you background I would chose C# anytime. With a VB.NET background I
would also chose C# if I was going to write big solutions, and spend 14 days
on learning the difference between C# and VB.NET (it took me 3 days!).

BTW: I''m a VB.NET developer.

PS: I would love if Microsoft synchronized the two languages, so these small
things was a argument for choosing one language over another.

Thomas
"Jack" <jack_z28NOSPAM.yahoo.com@> wrote in message
news:jf********************************@4ax.com...



我正在开始一个新的项目来开发在.NET框架上运行的Windows应用程序。您能不能给我一些理由向管理层介绍为什么我们应该在Visual Basic .NET上使用C#。

现在我们没有为.NET编写任何代码然而,这将是一个新项目。

我更喜欢C#,因为我的编程背景是C#/ C ++ / C / Pro
C和Java。

提前谢谢。

杰克

Hi,

I''m starting on a new project to develop Windows application run on
the .NET Frame work. Would you please give me some justifications to
present to management on why we should use C# over Visual Basic .NET.

Right now we don''t have any code written for the .NET yet and this
would be a new project.

I preferred C# because my background in programming is in C#/C++/C/Pro
C and Java.

Thank you in advance.

Jack



< Jack< jack_z28NOSPAM.yahoo。 COM @>>写道:
<Jack <jack_z28NOSPAM.yahoo.com@>> wrote:
我正在开始一个新项目来开发在.NET框架上运行的Windows应用程序。您能不能给我一些理由向管理层介绍为什么我们应该在Visual Basic .NET上使用C#。

现在我们没有为.NET编写任何代码然而,这将是一个新项目。

我更喜欢C#,因为我的编程背景是C#/ C ++ / C / Pro
C和Java。
I''m starting on a new project to develop Windows application run on
the .NET Frame work. Would you please give me some justifications to
present to management on why we should use C# over Visual Basic .NET.

Right now we don''t have any code written for the .NET yet and this
would be a new project.

I preferred C# because my background in programming is in C#/C++/C/Pro
C and Java.




说实话,这是一个很好的理由。


http://www.pobox.com/~skeet/csharp/faq/#vb.or.csharp 每个方向更多

理由。


-

Jon Skeet - < sk ** *@pobox.com>
http://www.pobox.com/~双向飞碟

如果回复小组,请不要给我发邮件



That''s a pretty good reason, to be honest.

See http://www.pobox.com/~skeet/csharp/faq/#vb.or.csharp for some more
reasons in each direction.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


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

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