6 references to TargetException
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
483
private static void ThrowHelperTargetException() => throw new
TargetException
(SR.RFLCT_Targ_StatFldReqTarg);
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvokerCommon.cs (2)
94
throw new
TargetException
(SR.RFLCT_Targ_StatMethReqTarg);
99
throw new
TargetException
(SR.Format(SR.RFLCT_Targ_ITargMismatch_WithType, method.DeclaringType, target.GetType()));
src\libraries\System.Private.CoreLib\src\System\Reflection\TargetException.cs (1)
15
:
this
(null)
System.Reflection.Context (2)
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertySetter.cs (2)
44
throw new
TargetException
(SR.Target_InstanceMethodRequiresTarget);
47
throw new
TargetException
(SR.Target_ObjectTargetMismatch);