[C#] 例外の種類を取得 開発 2021.08.25 try { ... } catch(Exception ex) { Console.WriteLine($"{ex.GetType()}"); }