Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

Vb.net And C#.net

I have 2 years of experience in vb.net and i don,t have any experience in c#.net.
So i would like to know what is the main diffrence between these two . As far as my concern both language is offering same kind of programing,Is C# has any advantage over vb.net
0
mabi_mathew
Asked:
mabi_mathew
2 Solutions
 
boy8964Commented:
same as me... but now I am developing a web application in C# -- just took me 2 days to change me from vb.net to C#. It is very easy!
0
 
boy8964Commented:
Any way, I can not see C# has any advantage over vb.net, but again, I perfer C# personally.
0
 
darkpriestCommented:
C# is alot more in the definitions and comparisons and initiating everything, its about 50 lines of code to do the same thing in VB.NEt in 10 lines... its quite pathetic C# while it has more functionality its tiresome and overdriven and way to much typing.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Mohammad Aamir QureshiCommented:
hello Brother

Check this

http://msdn.microsoft.com/vstudio/productinfo/whitepapers/default.aspx 
http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html
http://geekswithblogs.net/shartzog/archive/2005/02/10/22638.aspx

More Information    

VB.NET is a fully object oriented language. It definitely supports inheritance, even something called "visual inheritance." VB.NET, I think is a first class citizen now, but certainly earlier versions were garbage toys. My suggestion would be to learn both! Within the managed world anything you can do with C# you can do with VB.NET (I may be forgetting one or two rare things). Of course C# lets you write "unsafe code." That is why MS uses C# because it is suited for writing unsafe code and all their developers are acquainted with C. If you are writing a compiler then yes, VB.NET is not the tool ... If you are writing a database or webbased application though ... C# is my favorite language at this point but I don't think there is any reason to knock the .NET incarnation of VB. The reason its my favorite though is because it is a C-style (curly bracket) language. I think the most compelling reason to learn C# is so you at least learn the syntax and way a C-style language works as there are several of them out there. Ok, hope this was informative.


CHeers
0
 
Mohammad Aamir QureshiCommented:
0
 
Arthur_WoodCommented:
be aware, however, that C# (like C and C++) is CASE_SENSITIVE - that is, variable names are case sensitive:

int x = 5;
int X =10;

these two statements in c# declare 2 (yes 2) different  distinct variables.  

let's say you have a TextBox control places on your form.  The default name of the TextBox is textBox1.  YOu now declare a variable, to hold the text from textBox1:

string TextBox1 = "Hi there ";

then you can legally write code that looks like this:

textBox1.text = TextBox1;

this can quickly get to be very confusing.

AW

0
 
SoyYopCommented:
Well, being short:

- VB.Net is an OO language based on Visual Basic. Actually, resembles Delphi... and Classes are more logical than in VB6.
- C#.Net is an OO language based on C++. Some differences like class member notation (dots instead of semicolon) and variable usage (less pointers)
- As Arthur_Wood saids, VB.Net is case-insensitive, whle C# is not
- Parameter passing and function returns are constrained by the .Net definitions, so a c# function could be easily called from VB.Net, and so.


Every .Net language (vb, c#, Delphi, and others) shares a set of requirements, and a common runtime (CLR), at the point that they are "pre-compiled" to a common intermediate language, and then to the exec.
In fact, you can make a module in c#, and the other in vb.net, and then compile them to the same exec. Nice, ah?

Both can access arbitrary memory locations (can use pointers), BUT are denied by default. Memory is also managed. That means less memory leaks...

They introduce the concept of namespaces. Is like including "libraries" from a subdirectory structure. Each part of the tree has functions, clases, routines, etc.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now