what is the difference wetween Int32.parse and Convert.ToInt32
- From: "psycho" <paramvir.deol@xxxxxxxxx>
- Date: 2 Feb 2007 22:42:51 -0800
what is the difference between the two forms of converting to integer
from string
string strVal = "10";
Convert.ToInt32(strVal);
Int32.Parse(strVal);
which method is more efficient in terms of performance?
.
- Follow-Ups:
- Re: what is the difference wetween Int32.parse and Convert.ToInt32
- From: Freiddy
- Re: what is the difference wetween Int32.parse and Convert.ToInt32
- From: Jon Skeet [C# MVP]
- Re: what is the difference wetween Int32.parse and Convert.ToInt32
- Prev by Date: Re: VS2005 NOT Compatiblke with Vista? Are you serious?!
- Next by Date: Re: Install base of .NET 1.1
- Previous by thread: help explain this winform behaviour
- Next by thread: Re: what is the difference wetween Int32.parse and Convert.ToInt32
- Index(es):
Loading