string i = Console.ReadLine();
            int a=0;
            if (int.TryParse(i, out a) == false) //判断是否可以转换为整型
            {
                Console.WriteLine("False");
            }
            else
            {
                Console.WriteLine("Ture");
            }
            Console.ReadLine();

posted on 2014-06-04 17:47  随心所意  阅读(1986)  评论(0编辑  收藏  举报