public static void FlagsDefined <TEnum>( TEnum argFlags, [NotNull, InvokerParameterName] string argName) where TEnum : struct, Enum { if (!EnumHelper.AreFlagsDefined(argFlags)) { throw EnumCodeExceptions.ArgumentNotDefined(argName, argFlags); } }
public static void Defined <TEnum>( TEnum value, [NotNull, InvokerParameterName] string argName) where TEnum : struct, Enum { if (!EnumHelper.IsDefined(value)) { throw EnumCodeExceptions.ArgumentNotDefined(argName, value); } }
public static void Defined <TEnum>( TEnum value, [NotNull, InvokerParameterName] string argName) where TEnum : struct, IComparable, IFormattable, IConvertible { if (!EnumHelper.IsDefined(value)) { throw EnumCodeExceptions.ArgumentNotDefinedException(argName, value); } }
public static void AnyFlagUnset <TEnum>( TEnum value, [NotNull, InvokerParameterName] string argName, TEnum flags) where TEnum : struct, Enum { if (!value.IsAnyFlagUnset(flags)) { throw EnumCodeExceptions.ArgumentFlagSet(argName, value, flags); } }
public static void FlagSet <TEnum>( TEnum value, [NotNull, InvokerParameterName] string argName, TEnum flag) where TEnum : struct, IComparable, IFormattable, IConvertible { if (!value.IsFlagSet(flag)) { throw EnumCodeExceptions.ArgumentAnyFlagUnset(argName, value, flag); } }