Odiljon Akhmedov

Some troubles with LINQ statements and enum. Now I know what to focus on
This is the correct implementation.  I was hoping to see them as extension methods in another class. 

Ideally, you could write these as generic extension methods that could be called on any type that implements IComparable:

public static bool GreaterThan&lt;T&gt;(this T left, T right) where T : IComparable&lt;T&gt;