/// <summary> /// Converts the value of the specified enumeration to a byte. /// </summary> /// <typeparam name="T">An enumeration type</typeparam> /// <param name="value">An enumeration value</param> /// <returns>An 8-bit signed integer that is equivalent to the enumeration value</returns> public static byte ToByte <T>(T value) where T : struct, E => EnumCompiledCache <T> .ToByte(value);