/// <summary> /// Converts a ushort 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 FromUInt16 <T>(ushort value) where T : struct, E => EnumCompiledCache <T> .FromUInt16(value);