Comparisions between Vb.net and C#.net [Resolved]

Posted by Maheshvishnu under Interview Questions on 9/10/2012 | Points: 10 | Views : 2508 | Status : [Member] | Replies : 3
What are the significant differences between vb.net and c#.net?

which had good performance compared to other?

Thanks in advance

mahesh


Responses

Posted by: Muhsinathk on: 9/11/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Features of Visual Basic .NET

1.Variables can be declared using the WithEvents construct.
2.Auto-wireup of events, VB.NET has the Handles syntax for events.
3.IsNumeric evaluates whether a string can be cast into a numeric value (the equivalent for C# requires using int.TryParse)
4.COM components and interoperability was more powerful in VB.NET as the Object type is bound at runtime,[12] however C#4.0 added the dynamic type which functions as a late bound form of Object
5.Namespaces can be imported in project level, so they don't have to be imported to each individual file, like C#
6.Assigning and comparing variables uses the same token, =. Whereas C# has separate tokens, == for comparison and = to assign a value
7.VB.NET is not case-sensitive.
8.Visual Basic .NET terminates a block of code with End BlockName statements

Features of C#

1.Allows blocks of unsafe code (like C++/CLI) via the unsafe keyword and support for pointers
2.Partial Interfaces
3.Multi-line comments
4.Static classes
5.Can use checked and unchecked contexts for fine-grained control of overflow/underflow checking
6.String concatenation can be performed using the numeric addition token, +, in addition to the string concatenation token &.
7.C# is case-sensitive.
8.In C#, the braces, {}, are used to delimit blocks.

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopesh9 on: 9/10/2012 [Member] Starter | Points: 25

Up
0
Down
Hey,
VB.NET and C# .NET both use the same common language runtime. So we can say that there are almost no performance issues between VB.NET and C# .NET. But C# .NET may have a few more features than VB.Net such as handling unmanaged code where as VB.NET ease the task of developers by providing features such as late binding. So, the differences are very small if we compare both of them.

Hope, this will help you...

G. S.
.Net Developer

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vasanthmvp on: 9/10/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
To be brief,
No performance issues raise here, they have their own advantages & features at some scenarios.
C# and VB.NET both have access to the same framework libraries.
VB.NET is a natural language, not a case sensitive, etc. C# is more syntactic . and can find the differences among the Keywords, Operators, the way of Programming, etc.

For more examples: visit
http://www.dotnetfunda.com/articles/article601-difference-between-csharp-and-vbnet.aspx
http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C

Awesome Coding !! :)

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response