vb,vb.net,c# Contrast

Source: Internet
Author: User

Spent a week of time to read the vb.net video, said the truth, after reading is the feeling "dizzy"!

Look at the blog of Brother Siang, originally they learned at that time is the same feeling, suddenly heart comfortable a lot. It turns out I'm not too bad. VB.net video is indeed relatively tall, for me this kind of small white is still difficult. Of course, there is also the resonance of the place, is relatively few.

Vb. NET is similar to VB6.0 in a lot of places. At least see the interface I will not unfamiliar, direct operation. Of course, there are also different places. VB is object-oriented, and vb.net is completely object-oriented. VB6.0 does not support inheritance, overloading, and interfaces. Moreover, in exception handling, VB. NET to do better.

In VB6.0, the non-structured on Error Goto and On Error Resume next exception-handling statement is used. In vb.net, a structured try ... Catch... The finally exception-handling statement.

I have studied c#,vb before. NET and C # are both object-oriented computer languages developed by Microsoft. Before have heard VB.net is to meet VB programmer so only developed, is a sibuxiang. But now the development of the project with vb.net also a lot. It certainly has its good point.

So I looked up the comparison between them on the Internet. Vb. NET is not as good as C # in terms of inheritance, because C # is more intuitive. The C # language is more concise and straightforward in terms of knocking code. But vb.net is more humane. Because VB.net doesn't have to knock out countless curly braces, C # code is a little bit free. So the curly braces can be better controlled. But now that the code specification is highly valued, programmers tend to write a code in one line, which is more useful for reading. In this case, the curly braces appear to be a bit of a chicken. And when you hit the code, VB. NET can give better hints. Help programmers do more work.

In the error-tuning, VB. NET can clearly point to where the error is going. But C # because of the curly braces, the compiler is not very good at indicating where the error is. Need a curly brace corresponding to ...

There are many, of course, not to say that C # is bad, in doing large projects when a lot of c#,c# has a lot of features is not vb.net. The specific I this rookie is not very clear, no longer elaborated.

In the online check when there is an article for vb.net and C #, feel good, to share the link to everyone

Http://www.codesky.net/article/200908/127462.html

For these aspects of knowledge is still very deficient, but also hope that we have a lot of advice.

vb,vb.net,c# Contrast

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.