/// 验证用户输入的是否是整数
///
///
/// 返回bool类型
private bool IsInt(string intstring)
{
return Regex.IsMatch(intstring,@"[1-9]\d*$");
}
返回true 是整型
相关文章: