标签:try parse highlight main stat text arp png info
static void Main() { var ageText = "25"; if (int.TryParse(ageText,out int age)) { Console.WriteLine("Hi,My age is {0}",age); } else { Console.WriteLine("age {0} is not valid",ageText); } Console.ReadKey(); }
标签:try parse highlight main stat text arp png info
原文地址:https://www.cnblogs.com/bhfdz/p/8805993.html