Libation/LibationWinForms/ObjectComparer[T].cs
Michael Bucari-Tovo ef35c2aee9 Code Cleanup
2021-08-10 16:15:32 -06:00

11 lines
217 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((T)y);
}
}