VB或C#? [英] VB or C# ?

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

问题描述

我们打算使用.NET技术和SQL Server构建一个

公司内联网。


他们在选择使用时的优势/劣势

VB或C#?你能推荐使用哪一个吗?


一个人选择另一个会限制我们以后的任何方式

未来或者更适合构建Web基于

数据驱动页面?


谢谢,

菲利普

解决方案

CLR下的语言与普通类型相同。


相同的库。选择你想要的东西:D

" Philip Webb" <一个******* @ discussions.microsoft.com>在消息中写道

news:0b **************************** @ phx.gbl ... < blockquote class =post_quotes>我们打算使用.NET技术和SQL Server来构建一个企业内部网。

他们在选择使用时有什么优点/缺点。
VB还是C#?您能否推荐使用哪一种。

将一个选择在另一个之上会限制我们未来的任何方式,或者更适合构建基于Web的数据 - 驱动页面?

谢谢,
Philip



了解他们两个......真正的挑战是学习.NET做的方式是
的东西,框架。与此相比,语法是微不足道的。


WAYYYY花了太多时间来讨论这个问题,最后,如果你使用Option,就会有很大的差别b / b
严格的VB.Net。 C#确实支持

非托管代码,但除非你明确需要它,否则可能不是很好。


老实说,让你的开发人员了解他们感到满意的东西,

并让他们学得很好。如果他们需要

,他们将能够迁移到。从VB6学习VB.NET比从VB $ VB $ VB $学习C#要困难得多。


如果你需要具体的差异(并且没有多少人反对

,有些游击队员会告诉你)有很多文章,Dan

Appleman写了一本电子书和一些以上的文章就此主题而言。 HTH

HTH,

Bill


" Philip Webb" <一个******* @ discussions.microsoft.com>在消息中写道

news:0b **************************** @ phx.gbl ... < blockquote class =post_quotes>我们打算使用.NET技术和SQL Server来构建一个企业内部网。

他们在选择使用时有什么优点/缺点。
VB还是C#?您能否推荐使用哪一种。

将一个选择在另一个之上会限制我们未来的任何方式,或者更适合构建基于Web的数据 - 驱动页面?

谢谢,
Philip



William Ryan< do ******** @ comcast.nospam.net>写道:

WAYYYY花了太多时间讨论这个问题,最后,如果你在VB.Net中使用Option Strict,那么差别很小。 C#确实支持非托管代码,但除非你明确需要它,否则可能不是什么大问题。




快速修正这里:C#不支持un * managed *代码,它支持

un * safe *(但仍然是托管)代码。


对于非托管代码,你需要去MC ++。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet

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


We intend to use .NET technology and SQL Server to build a
corporate Intranet.

Are their any advantages/disadvantages in chosing to use
VB or C#? Could you recommend which one to use.

Will chosing one over the other restrict us in any way in
the future or is one better suited to building Web-based
data-driven pages?

Thanks,
Philip

解决方案

Languages are equal under the CLR with common types.

Same libraries. chose what u want :D
"Philip Webb" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...

We intend to use .NET technology and SQL Server to build a
corporate Intranet.

Are their any advantages/disadvantages in chosing to use
VB or C#? Could you recommend which one to use.

Will chosing one over the other restrict us in any way in
the future or is one better suited to building Web-based
data-driven pages?

Thanks,
Philip



Learn them both.... The real challenge is learning the .NET way of doing
things, the framework. Syntax is trivial compared to this.

WAYYYY too much time is spent debating this, and in the end, there is very
little difference provided you use Option Strict in VB.Net. C# does support
unmanaged code, but unless you have an explicit need for it, that may not be
a big deal.

Honestly though, have your developers learn what they are comfortable with,
and have them learn it well. They will be able to migrate over if they need
to. It''s a lot harder to learn VB.NET from VB6 than to learn C# from
VB.NET.

If you need specifics on the differences (and there aren''t many contrary to
what some partisans will tell you) there are many articles on it, Dan
Appleman wrote an ebook and more than a few articles on the subject. HTH
HTH,
Bill

"Philip Webb" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...

We intend to use .NET technology and SQL Server to build a
corporate Intranet.

Are their any advantages/disadvantages in chosing to use
VB or C#? Could you recommend which one to use.

Will chosing one over the other restrict us in any way in
the future or is one better suited to building Web-based
data-driven pages?

Thanks,
Philip



William Ryan <do********@comcast.nospam.net> wrote:

WAYYYY too much time is spent debating this, and in the end, there is very
little difference provided you use Option Strict in VB.Net. C# does support
unmanaged code, but unless you have an explicit need for it, that may not be
a big deal.



Quick correction here: C# doesn''t support un*managed* code, it supports
un*safe* (but still managed) code.

For unmanaged code, you''d need to go to MC++.

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


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

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