[*] Hello Snoopy

.NET and Flash Blog
C#判断是否为数字的最好速度!
public static bool IsNum(String str)
{
 for(int i=0;i<str.Length;i++)
 {
  if(str[i]<='0' || str[i]>='9')
   return false;
 }
 return true;
}

posted on 2005-01-14 14:15  HelloSnoopy  阅读(1066)  评论(0编辑  收藏  举报