c# using finally
![[C#] try ~ finally](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbP56oZ%2FbtqDF1053BC%2FAAAAAAAAAAAAAAAAAAAAAHiohrerUeHyMukP9ZykFBOjjyjqwbWUlUbL6Manv3Vg%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DniIyJyWwmCel42NrKKxKHJOzeWk%253D)
[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..