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