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

◆ CheckConsistency()

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

Definition at line 177 of file RuntimeConstructorInfo.cs.

178 {
179 if ((target != null || !base.IsStatic) && !m_declaringType.IsInstanceOfType(target))
180 {
181 if (target == null)
182 {
183 throw new TargetException(SR.RFLCT_Targ_StatMethReqTarg);
184 }
185 throw new TargetException(SR.RFLCT_Targ_ITargMismatch);
186 }
187 }

References System.Reflection.RuntimeConstructorInfo.m_declaringType, System.SR.RFLCT_Targ_ITargMismatch, and System.SR.RFLCT_Targ_StatMethReqTarg.

Referenced by System.Reflection.RuntimeConstructorInfo.Invoke().