?????????????????TryCatch??????????????????ж????????е???????????????????е???????????????????????д???Demo???????????????д?????????????????TryCatch????????????????????????????????????????????????

    static void Main(string[] args) 
            { 
                int loopCount=100; 
                List<string> strList = new List<string>(); 
                for (int i = 0; i < loopCount; i++) { 
                    strList.Add("str" + i); 
                } 
                int intTemp = 0; 
                Stopwatch sw2 = new Stopwatch(); 
                sw2.Start(); 
                foreach (string str in strList) 
                { 
                    Console.WriteLine("????TryCatch"); 
                    int.TryParse(str?? out intTemp); 
                } 
                sw2.Stop(); 
             
                Stopwatch sw = new Stopwatch(); 
                sw.Start(); 
                foreach (string str in strList) 
                { 
                    try
                    { 
                        Console.WriteLine("????TryCatch"); 
                        intTemp = Convert.ToInt32(str); 
                        
                    } 
                    catch (Exception ex) 
                    { 
                        //??????????
                    } 
                } 
                sw.Stop(); 
                Console.WriteLine("???????" + loopCount + "????TryCatch?????" + sw2.ElapsedMilliseconds); 
                Console.WriteLine("???????" + loopCount + "????TryCatch?????" + sw.ElapsedMilliseconds); 
                Console.WriteLine("??????????" ); 
                Console.ReadLine(); 
            }

??????????????????????????????????????????????????????????TryCatch????loopCount?100????н?????£?