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 May 7th, 2006, 08:42 AM
Authorized User
 
Join Date: Apr 2006
Posts: 79
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to anujrathi Send a message via MSN to anujrathi Send a message via Yahoo to anujrathi
Default Difference bet Convert.Toint32 and Int.Parse

What is difference between Convert.ToInt32 and Int.Parse
 
Old May 8th, 2006, 05:24 AM
Authorized User
 
Join Date: Apr 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think diference is in the null handling... ToInt32 handles null values but Parse throws an exception

 
Old May 8th, 2006, 05:24 AM
Authorized User
 
Join Date: Apr 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

But you can do your own experiment, just create a method to test both

 
Old September 8th, 2007, 02:31 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

following link will be useful to u.

http://blogs.msdn.com/ianhu/archive/...19/505702.aspx





Similar Threads
Thread Thread Starter Forum Replies Last Post
CInt versus Integer.Parse - what's the difference? sektor Visual Basic 2005 Basics 2 June 5th, 2008 04:23 AM
What's the difference between an int and a long jnrico C++ Programming 4 March 4th, 2007 01:29 AM
Convert a char to int!!!!?? vtvb C++ Programming 6 March 18th, 2006 05:51 AM
Convert int to nvarchar bekim SQL Language 1 August 12th, 2004 06:33 AM
convert char to int does not work yasaman C# 1 August 6th, 2003 10:39 AM





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