Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckConsistency()

void System.Reflection.RuntimeMethodInfo.CheckConsistency ( object target)
inlineprivate

Definition at line 396 of file RuntimeMethodInfo.cs.

397 {
398 if ((m_methodAttributes & MethodAttributes.Static) == 0 && !m_declaringType.IsInstanceOfType(target))
399 {
400 if (target == null)
401 {
402 throw new TargetException(SR.RFLCT_Targ_StatMethReqTarg);
403 }
404 throw new TargetException(SR.RFLCT_Targ_ITargMismatch);
405 }
406 }
override bool IsInstanceOfType([NotNullWhen(true)] object o)

References System.RuntimeType.IsInstanceOfType(), System.Reflection.RuntimeMethodInfo.m_declaringType, System.Reflection.RuntimeMethodInfo.m_methodAttributes, System.SR.RFLCT_Targ_ITargMismatch, and System.SR.RFLCT_Targ_StatMethReqTarg.

Referenced by System.Reflection.RuntimeMethodInfo.Invoke(), and System.Reflection.RuntimeMethodInfo.InvokeOneParameter().