Exemple #1
0
 public static ContextKaiju operator +(ContextKaiju context1, ContextKaiju context2)
 {
     Kaiju[] k1 = context1.GetArrayKaiju();
     Kaiju[] k2 = context2.GetArrayKaiju();
     ContextKaiju context3 = new ContextKaiju(k1.Length + k2.Length);
     context3.Add(k1);
     context3.Add(k2);
     return context3;
 }
Exemple #2
0
        static void Main()
        {
            FileKaiju obj_FileKaiju = new FileKaiju();
            ContextKaiju objContext_1 = new ContextKaiju(2);
            //obj_FileKaiju.AddToFile(new Apollon());
            //obj_FileKaiju.AddToFile(new Kaiju());
            //obj_FileKaiju.AddToFile(new Zeus());
            //obj_FileKaiju.AddToFile(new Titan());
            //obj_FileKaiju.AddToFile(new Gorilla());
            //obj_FileKaiju.AddToFile(new Flying());
            objContext_1.Add(obj_FileKaiju.ReadFile());
            objContext_1.OutputKaiju();
            Del_2 D_2 = new Del_2(Cls2.Meth21);
            Del_2 D_3 = Cls2.Meth21;
            D_3 += D_2;
            Cls1.Even1 += Cls2.Meth21;
            Cls2 o1 = new Cls2();
            Cls1.Even1 += o1.Meth22;
            Cls1.GoEvent();

            Console.WriteLine("Fin");
            Console.ReadKey();
        }