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

◆ ThrowNoInvokeException()

void System.Reflection.RuntimeConstructorInfo.ThrowNoInvokeException ( )
inlinepackage

Definition at line 317 of file RuntimeConstructorInfo.cs.

318 {
319 CheckCanCreateInstance(DeclaringType, (CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs);
320 if ((Attributes & MethodAttributes.Static) == MethodAttributes.Static)
321 {
322 throw new MemberAccessException(SR.Acc_NotClassInit);
323 }
324 throw new TargetException();
325 }
static void CheckCanCreateInstance(Type declaringType, bool isVarArg)

References System.SR.Acc_NotClassInit, System.Reflection.RuntimeConstructorInfo.Attributes, System.Reflection.RuntimeConstructorInfo.CheckCanCreateInstance(), and System.Reflection.RuntimeConstructorInfo.DeclaringType.

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