Deploying C: "Exceptions and Parsing Hex
try
{
int tag = Int32.Parse(s, System.Globalization.NumberStyles.HexNumber);
// other code deleted...
}
catch (InvalidCastException )
{
}
catch (FormatException)
{
My_Diagnostics_list.Items.Add(@'There is a format problem with that hex entry. Tosser!');
}
finally
{
// come hell or high water, this code will be executed.
}"
0 Comments:
Post a Comment
<< Home