28 references to Arg_MustBeType
System.Private.CoreLib (28)
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (2)
37
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(type));
98
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(type));
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
550
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(types));
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2147
throw new ArgumentException(enumType is not RuntimeType ? SR.
Arg_MustBeType
: SR.Arg_MustBeEnum, nameof(enumType));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
351
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\libraries\System.Private.CoreLib\src\System\Reflection\Pointer.cs (1)
30
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(type));
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
63
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
196
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
1196
return SR.
Arg_MustBeType
;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
997
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
1010
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeAssembly.cs (2)
334
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
344
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (2)
139
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
149
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeEventInfo.cs (2)
99
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
109
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeFieldInfo.cs (2)
70
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
80
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (2)
182
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
192
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeModule.cs (2)
363
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
373
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimeParameterInfo.cs (2)
468
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
484
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Reflection\RuntimePropertyInfo.cs (2)
147
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
157
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(attributeType));
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
479
throw new ArgumentException(SR.
Arg_MustBeType
, nameof(type));