Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 // Calls a method from another inner class.
 public static void method1()
 {
     Console.WriteLine("Method call from Inner_class_2");
     Inner_class.method1();
 }
Exemplo n.º 3
0
 public Outer_class()
 {
     this.Inner = Inner_class(this);
 }