Skip to content

Instantly share code, notes, and snippets.

View The-Futurist's full-sized avatar

The-Futurist

  • North Central University
View GitHub Profile
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();