Exemple #1
0
 private static void Kiir(DelegateDemo delegateDemo)
 {
     Console.WriteLine("Elemek:");
     foreach (var item in delegateDemo)
     {
         Console.WriteLine(item);
     }
     Console.WriteLine();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            DelegateDemo delegateDemo = new DelegateDemo();

            Kiir(delegateDemo);
            delegateDemo.Modosit(negyzet);
            Kiir(delegateDemo);
            delegateDemo.Modosit(Duplaz);
            Kiir(delegateDemo);
            Console.ReadKey();
        }