C#:
-
try
-
{
-
string valor_Int = null;
-
// Devuelve el valor usando -Parse- con valor CERO
-
int valorConvert = Convert.ToInt32(valor_Int);
-
// Devuelve una excepcion de tipo ArgumentNullException
-
int valorParse = int.Parse(valor_Int);
-
}
-
catch (Exception ex)
-
{
-
Console.WriteLine(ex.Message);
-
}
-
Console.ReadLine();

Sorry you must register to comments in this post