private static T ConvertToEnum <T>(int val) where T : Enum { var result = IntEnumConverterUnsafe.Convert <T>(val); return(result); }
private static int ConvertToInt <T>(T val) where T : Enum { var result = IntEnumConverterUnsafe.Convert(val); return(result); }