/// <summary> /// Converts a long to a specified enumeration <typeparamref name="T"/> /// </summary> /// <typeparam name="T">Enumeration Type</typeparam> /// <param name="value">value to convert</param> /// <returns><paramref name="value"/> as the enumeration type</returns> public static T FromInt64 <T>(long value) where T : struct, E => EnumCompiledCache <T> .FromInt64(value);