Libation/LibationWinForms/ObjectComparer[T].cs
2021-08-09 18:56:06 -06:00

11 lines
208 B
C#

using System;
using System.Collections;
namespace LibationWinForms
{
class ObjectComparer<T> : IComparer where T : IComparable
{
public int Compare(object x, object y) => ((T)x).CompareTo((T)y);
}
}