Beispiel #1
0
        public void ServiceRequest()
        {
            Is50OddDelegate del = new Is50OddDelegate(Is50Odd);
            Service         ser = new Service();

            ser.Is50AppearsInOddNumbers(del);
        }
Beispiel #2
0
 public void Is50AppearsInOddNumbers(Is50OddDelegate del)
 {
     for (int i = 0; i < 100; i++)
     {
         if (i % 2 != 0)
         {
             if (i == 50)
             {
                 del(true);
             }
         }
     }
 }