/// <summary> /// Converts the value of the specified enumeration to a double. /// </summary> /// <typeparam name="T">An enumeration type</typeparam> /// <param name="value">An enumeration value</param> /// <returns>A double precision floating point number that is case equivalent to the enumeration value</returns> public static double ToDouble <T>(T value) where T : struct, E => EnumCompiledCache <T> .ToDouble(value);