1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2026-01-12 17:58:15 +01:00
Files

12 lines
335 B
C#

namespace Phantom.Utils.Collections;
public static class Comparables {
public static T Min<T>(T first, T second) where T : IComparable<T> {
return first.CompareTo(second) < 0 ? first : second;
}
public static T Max<T>(T first, T second) where T : IComparable<T> {
return first.CompareTo(second) < 0 ? second : first;
}
}