IT Community - Software Programming, Web Development and Technical Support

What is the difference between VB.Net and C#.Net

This is a discussion on What is the difference between VB.Net and C#.Net within the VB.NET Programming forums, part of the Software Development category; Hi All, Can Anybody please tell me the difference between the Vb.Net and C#.net. Asked to me in ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > VB.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-31-2007, 02:14 AM
aramesh aramesh is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 71
aramesh is on a distinguished road
Default What is the difference between VB.Net and C#.Net

Hi All,
Can Anybody please tell me the difference between the Vb.Net and C#.net. Asked to me in many interviews. It's helpful to me and all.

Thanks in Advance
<aramesh>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-01-2007, 05:13 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Post Re: What is the difference between VB.Net and C#.Net

Hui Dude this reply will be useful for your interview "Visual C# .NET looks more familiar to Visual C, Visual C++, and Java programmers, and Visual Basic .NET looks more familiar to Visual Basic developers. The biggest differences between the languages fall into the following categories:
• Case sensitivity
• Variable declaration and assignment
• Data types
• Statement termination
• Statement blocks
• Use of () vs. []
• Operators
• Conditional statements
• Error handling
• Overflow checking
• Parameter passing
• Late binding
• Handling unmanaged code
• Keywords"

- Vignesh Anand M.J
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-12-2007, 10:28 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: What is the difference between VB.Net and C#.Net

hi,
see the attachment below it i will help you
Attached Files
File Type: doc Difference.doc (219.5 KB, 3 views)
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-06-2008, 08:20 PM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default Re: What is the difference between VB.Net and C#.Net

You will find that there is not all that much distinguishing differences from Visual C# and Visual Basic. These languages are known as Intermediate Languages (IL). This becomes an important factor in that this can have a limitation in what systems may run the applications that are designed with these languages. The limitation falls from the code being interpreted by the Common Language Runtime (CLR). VB.Net is also a language that uses a Just-In-Time (JIT) compiler. This means that an application that is ran for the first time may take a few extra CPU cycles to execute because it is loading for the first time; however, the benefit therein lies when the application runs the code again it will be faster in execution because the JIT compiler had already compiled the coding.

A prime example is that Visual C# can handle pointers directly, where as VB must use an API reference to do this
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 08:39 PM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 138
GDevakii is on a distinguished road
Smile Re: What is the difference between VB.Net and C#.Net

These two languages are functionally equivalent, which means that they each provide equal abilities to create Web applications. The differences between the two languages are syntactical and stylistic.

Visual Basic programmers will be more comfortable developing Web applications in Visual Basic .NET; C or C++ programmers will be more comfortable developing with Visual C#.

VB.NET is not case sensitive .But C# is case sensitive.

C# use braces ( { and } ) to declare functional blocks of code.VB.NET doesn't use braces .

In VB.NET implicit type conversions are permitted by default.
But in C# type conversions are performed explicitly by casts

In VB.NET array elements are specified using parentheses.
But in C# array elements are specified using square brackets.

In VB.NET u can omit parentheses after method names if there are no arguments.But in C# u must include parentheses after all methods.

In VB.NET all statements are terminated by carriage return.
But in C# all statements are terminated by the semicolon (.

In VB.NET statements are continued using the underscore (_).
In C# statements continue until the semicolon ( and can span multiple lines if needed.

VB.NET use the ampersand (&) or plus sign (+) to join strings.But C# only use the plus sign (+) to join strings.

I have taken the above details from a text . If u want examples mail me.
u can get some information from the following link.
Welcome to the MSDN Library

VB.NET support boxing .See example below.
Dim I As Integer = 100
Dim O As Object
O = I
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:26 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0