与C#相比,学习VB有多容易? [英] How easy is it to learn VB compared to C#?
本文介绍了与C#相比,学习VB有多容易?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
与c#相比,使用/学习VB有多难/容易?
解决方案
学习VB的难度很大。
这是因为VB提供了更多的方法来完成大部分工作。
例如,
设置函数的返回值 - 2方式(C#有1种方式)
将事件连接到方法 - 2种方式(C#有1种方式)
字符串操作 - 2种方式(VB''遗留''函数vs .NET方法)
异常处理与非结构化错误处理(C#有1种方式)
这些只是示例 - 我可以列出几十个VB的区域提供
多种替代方案,有时基于维护遗留代码的需要。
VB还有一些C#中没有的功能(例如XML文字和
可选参数),但是C#也有VB中没有的一些功能
(不安全的代码,匿名方法和迭代器),所以这些都会被淘汰。 />
-
http://www.tangiblesoftwaresolutions.com
C ++到C#
C ++到VB
C ++到Java
VB到Java
Java到VB& C#
即时C#:VB到C#
即时VB:C#到VB
即时C ++:VB,C#或Java到C ++ / CLI
" Andy B"写道:
与c#相比,使用/学习VB有多难/容易?
< blockquote>Andy B < a _ ***** @sbcglobal.netschrieb
与c#相比,使用/学习VB有多难/容易?
VB是一种更高级的语言。
SCNR
;)
Andy,
取决于你想学什么
编程:使用C#因为它对所有内容都比较严格而且没有
自动更改你的输入错误,
学会使用一种语言来提高效率:使用VB作为在很多情况下,它可以用更轻松的方式完成C#所花费的时间。
只是我的意见。
Cor
" Andy B" < a _ ***** @ sbcglobal.netschreef in bericht
news:%2 ****************** @ TK2MSFTNGP02.phx.gbl ...
与c#相比,使用/学习VB有多难/容易?
How hard/easy is it to use/learn VB compared to c#?
解决方案
It''s harder to learn VB well.
This is due to the fact that VB offers more ways of doing most things.
e.g.,
Setting the return value for a function - 2 ways (C# has 1 way)
Wiring events to methods - 2 ways (C# has 1 way)
String manipulation - 2 ways (VB ''legacy'' functions vs .NET methods)
Exception handling vs unstructured error handling (C# has 1 way)
These are just examples - I could list a few dozen areas where VB offers
multiple alternatives, sometimes based on a need to maintain legacy code.
VB also has a few features not available in C# (such as XML literals and
optional parameters), but C# also has some features not available in VB
(unsafe code, anonymous methods, and iterators), so these kind of wash out.
--
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
VB to Java
Java to VB & C#
Instant C#: VB to C#
Instant VB: C# to VB
Instant C++: VB, C#, or Java to C++/CLI
"Andy B" wrote:
How hard/easy is it to use/learn VB compared to c#?
"Andy B" <a_*****@sbcglobal.netschriebHow hard/easy is it to use/learn VB compared to c#?VB is a higher level language.
SCNR
;)
Andy,
Depends on what you want to learn
Programming: use C# as it is more strict with everything and does not
automaticly change your typing mistakes,
Learn to use a language to be productive: use VB as it does things that are
time spending to do with C# in many cases in a more easy way.
Just my opinion.
Cor
"Andy B" <a_*****@sbcglobal.netschreef in bericht
news:%2******************@TK2MSFTNGP02.phx.gbl...How hard/easy is it to use/learn VB compared to c#?
这篇关于与C#相比,学习VB有多容易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文