Ejemplo n.º 1
0
 private static void RunHandler(object sender, CheckPoint point)
 {
     Console.WriteLine($"{point.Num}");
     if (point.Num >= 70)
     {
         point.Flag = true;
     }
 }
Ejemplo n.º 2
0
 protected virtual void Point(CheckPoint point)
 {
     if (point == null)
     {
         throw new ArgumentNullException();
     }
     CheckPoints?.Invoke(this, point);
     Flag = point.Flag;
 }