namespace Core.Helpers;
public static class EnumHelper
{
///
/// Retrieved maximum possible value in an enum. In other words, return the number of values contained in the enum
///
/// Enum
/// Number of possible values
public static int GetMaxValue() where T : Enum
{
var i = Enum.GetValues(typeof(T)).Length;
return i;
}
}