public static void Main(string[] args) { try { Inner_class inner = new Inner_class(); int iterations = 1; double result = Calculater(iterations); linQc(); Console.ReadKey(); Console.WriteLine(result); Console.ReadLine(); // throw new Exception("E1"); } catch (Exception ex) when(log(ex, "error")) { Console.WriteLine(ex); } }
// Calls a method from another inner class. public static void method1() { Console.WriteLine("Method call from Inner_class_2"); Inner_class.method1(); }
public Outer_class() { this.Inner = Inner_class(this); }