int iNum = 0;
string sNumber = "1003";
int iResult = 0;
int.TryParse(sNumber, out iResult);
if (iResult == 1)
{
	iNum = int.Parse(sNumber);
}
posted on 2017-07-20 18:58  yutingliuyl  阅读(152)  评论(0编辑  收藏  举报