/// <summary> /// Retrieves all the flags defined by <paramref name="enumType"/>. /// </summary> /// <param name="enumType">The enum type.</param> /// <returns>All the flags defined by <paramref name="enumType"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <c>null</c>.</exception> /// <exception cref="ArgumentException"><paramref name="enumType"/> is not an enum type.</exception> public static object GetAllFlags(Type enumType) => NonGenericEnums.GetInfo(enumType).AllFlags;
/// <summary> /// Indicates if <paramref name="enumType"/> is marked with the <see cref="FlagsAttribute"/>. /// </summary> /// <param name="enumType">The enum type.</param> /// <returns>Indication if <paramref name="enumType"/> is marked with the <see cref="FlagsAttribute"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <c>null</c>.</exception> /// <exception cref="ArgumentException"><paramref name="enumType"/> is not an enum type.</exception> public static bool IsFlagEnum(Type enumType) => NonGenericEnums.GetInfo(enumType).IsFlagEnum;