13 references to Arg_MustBeEnum
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
887
throw new ArgumentException(SR.
Arg_MustBeEnum
, nameof(TEnum));
2148
throw new ArgumentException(enumType is not RuntimeType ? SR.Arg_MustBeType : SR.
Arg_MustBeEnum
, nameof(enumType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
623
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
636
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (3)
25
throw new ArgumentException(SR.
Arg_MustBeEnum
, nameof(value));
71
throw new ArgumentException(SR.
Arg_MustBeEnum
, nameof(value));
93
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
System\RuntimeType.NativeAot.cs (6)
101
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
109
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
120
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
143
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
186
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");
205
throw new ArgumentException(SR.
Arg_MustBeEnum
, "enumType");