int i = 默认值;
try
{
   i = int.parse("");
}
catch{}///如果转换不成功则i为默认值