private bool IsNumber(string s) { if(s == null) { return false; } if(s.Length > 0) { return char.IsNumber(s, 0); } else { return false; } }