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