Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2005, 01:17 AM
Authorized User
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to avanishp
Default VB.NET v/s C# which is better?

Hi all

I am bit confuse over the issue "VB.NET v/s C# performancewise which is better?", some said c# bcos it is designed to take framework in mind, but some said both are equivalent, which is true?


Thanks
Avanish

__________________
Avanish Pandey
Set your heart upon your work, but never on its reward
 
Old April 23rd, 2005, 01:30 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Avinash,

 VB.Net has some level backward combatibity for old VB, so if you are an old vb programmer your code may have overhead of this feature. But C# is a totaly new language designed to .Net Platform, it is strongly typed and bit more options than vb.net. Also the case insensitivty may cost a bit to the CLR in case of VB.net.

I have worked in both and have not found any mind blowing perfomance in C#.
Its you coding practices which are going to cost you. For Eg: The more you use Stringbuilder that string the faster is you application.

Prashant



 
Old April 23rd, 2005, 04:37 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Prashant, your post is a tad misleading:
Quote:
quote:Originally posted by Prashant.k.m
 But C# is a totaly new language designed to .Net Platform, it is strongly typed and bit more options than vb.net.

VB.NET is also designed for the framework. It is strongly typed. All languages that work in .NET must work with the framework. True, C# does have a few more tricks up its sleave that VB.NET does not, but not that many.

The Microsoft.VisualBasic namespace has many functions that are found in earlier version of VB to support migration. However, many of those functions can be found in a similar form in the framework, and I'd recommend learning those in order to stick to generic framework methods (vs. language specific). If you still need to use some older style VB function, you can. And you can use them in any .NET language because the Microsoft.VisualBasic classes are part of the framework.

Quote:
quote:
Also the case insensitivty may cost a bit to the CLR in case of VB.net.
When .NET code is compiled, it's all distilled down to MicroSoft Intermediate Language (MSIL) that lives in the assembly (DLL/EXE). This makes the case issue irrelevant when it comes to performance.[/quote]

Avanish-
Until you get into advanced coding techniques where you may need to take advantage of some of the minor differences between the .NET languages you will find that they both perform and behave the same. All .NET languages support all aspects of the framework while each provides a few things the others don't.

-Peter
 
Old April 25th, 2005, 01:45 AM
Authorized User
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to avanishp
Default

Hi

Thanks for your reply, but see what a got from a message board:

"c# is faster than vb.net because it generates less code in IL than vb.net. So, this reason, it is faster than vb.net. "

it is true?

Avanish






Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net 2008 re: VB.NET databases book bigbearjeff VB.NET 0 June 2nd, 2008 01:22 PM
convert dsr file from vb to vb.net Shashi001 VB Components 1 September 22nd, 2006 12:24 PM
VB.Net question on Windows VB.Net datagrids dmsousa VS.NET 2002/2003 1 January 19th, 2005 02:45 PM
vb.net 2002 OR vb.net 2003 metalaaron VB.NET 2002/2003 Basics 0 August 5th, 2003 10:00 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.