6 references to TargetException
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
483private static void ThrowHelperTargetException() => throw new TargetException(SR.RFLCT_Targ_StatFldReqTarg);
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvokerCommon.cs (2)
94throw new TargetException(SR.RFLCT_Targ_StatMethReqTarg); 99throw 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)
44throw new TargetException(SR.Target_InstanceMethodRequiresTarget); 47throw new TargetException(SR.Target_ObjectTargetMismatch);