Exemplo n.º 1
0
        public bool IsNumber(string s)
        {
            string     checkedInput = s.Trim();
            SolutionNK snk          = new SolutionNK();

            return(snk.isNumeric(checkedInput.ToCharArray()));
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            SolutionNK s           = new SolutionNK();
            string     inputString = "1";

            char[] str    = inputString.ToCharArray();
            bool   result = s.isNumeric(str);

            Console.WriteLine(result.ToString());
            Solution ss = new Solution();
            var      r  = ss.IsNumber("1");

            Console.ReadKey();
        }