protected virtual void OnEndOfSorting(SortingUnitEventArgs e) { this.EndOfSorting?.Invoke(this, e); }
private static void PrintSortingEvent(object sender, SortingUnitEventArgs e) { Console.WriteLine(e.Message); Console.WriteLine($"Sorting time: {e.TimePerformance}"); Console.WriteLine(); }