字符串是否数字0-9开头 - StrStartsWithNumber
2017-02-18 11:43:33 访问(1695) 赞(0) 踩(0)
/// <summary>
/// 字符串是否数字0-9开头
/// </summary>
/// <param name="theValue"></param>
/// <returns></returns>
public bool StrStartsWithNumber(string theValue)
{
if (theValue == null || theValue.Length == 0)
return false;
char theChar = theValue[0];
if (theChar >= '0' && theChar <= '9')
return true;
return false;
}
标签:
字符串是否数字0-9开头 - StrStartsWithNumber 


上一条:
下一条:
相关评论
发表评论