main
 1using System;
 2
 3namespace Gorilla.Commons.Utility
 4{
 5    static public class ComparableExtensions
 6    {
 7        static public bool is_before<T>(this T left, T right) where T : IComparable<T>
 8        {
 9            return left.CompareTo(right) < 0;
10        }
11
12        static public bool is_after<T>(this T left, T right) where T : IComparable<T>
13        {
14            return left.CompareTo(right) > 0;
15        }
16    }
17}