public Miclase(int a) { try { Miclase.MiMetodo(); } catch (Exception e) { ArchivoTexto.Guardar(e.ToString()); Console.WriteLine(e.Message); throw e; } }
static void Main(string[] args) { Miclase mc = new Miclase("hola"); try { mc.MiMetodo2(); } catch (Exception e) { ArchivoTexto.Guardar(e.ToString()); Console.WriteLine($"main {e.Message}"); Console.ReadKey(); } }