[C#] 한글자가 숫자(1)인지 체크


//한글자가 숫자(1)인지 체크
public static int NumberCheck(string numString)
{
int retNumberCheck = 0;
long number1 = 0;

try{
bool canConvert = long.TryParse(numString, out number1);

if (canConvert == true)
retNumberCheck = 1;
else
retNumberCheck = 0;
}
catch
{}

return retNumberCheck;

}