Libation/Source/AppScaffolding/ObjectComparer[T].cs
2023-02-06 16:04:58 -07:00

11 lines
210 B
C#

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