public void Main(string[] args) { Console.WriteLine("Test"); Class1 ourObject = new Class1(); try { ourObject.TestClass(); } catch (Exception e) { if (e.Message != null) { Console.WriteLine(e.Message); Console.ReadLine(); } else { throw; } } }
public void Main(string[] args) { Console.WriteLine("Test"); Class1 ourObject = new Class1(); try { ourObject.TestClass(); } catch (Exception e) { if (e.Message != null) { Console.WriteLine(e.Message); Console.ReadLine(); } else { throw; } } }