c# using finally

    [C#] try ~ finally

    [C#] try ~ finally

    1. 핵심 정리 using System; class Program { static void Main() { try { throw new Exception(); } catch(Exception e) { Console.WriteLine("catch"); } finally { Console.WriteLine("finally"); } } } ① catch vs finally 실행 결과 catch finally using System; class Program { static void Main() { try { // throw new Exception(); } catch(Exception e) { Console.WriteLine("catch"); } finally { Console.WriteLine("finall..