if(STRING != null)
{
Convert.ToInt32(string) AND Int32.Parse(string) Yield Identical Results;
}
else
{
Int32.Parse(null) throws an ArgumentNullException;
Convert.ToInt32(null) returns a zero;
}
{
Convert.ToInt32(string) AND Int32.Parse(string) Yield Identical Results;
}
else
{
Int32.Parse(null) throws an ArgumentNullException;
Convert.ToInt32(null) returns a zero;
}
No comments:
Post a Comment