Libation/Source/LibationWinForms/ObjectComparer[T].cs
2022-05-09 10:31:45 -04:00

11 lines
214 B
C#

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