View gist:7b21244cfb8d29c6335ff0ab567e4928
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace HolidayAPI | |
{ | |
public class Schedule<T> where T : ISchedulable<IComparable> | |
{ | |
private List<T> values = new List<T>(); | |
public void AddEvent(in T Event) | |
{ | |
values.Add(Event); | |
values = values.OrderBy(r => r).ToList(); |