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

◆ InvokeOneParameter()

object System.Reflection.RuntimeMethodInfo.InvokeOneParameter ( object obj,
BindingFlags invokeAttr,
Binder binder,
object parameter,
CultureInfo culture )
inlinepackage

Definition at line 474 of file RuntimeMethodInfo.cs.

475 {
476 if ((InvocationFlags & (INVOCATION_FLAGS.INVOCATION_FLAGS_NO_INVOKE | INVOCATION_FLAGS.INVOCATION_FLAGS_CONTAINS_STACK_POINTERS)) != 0)
477 {
479 }
482 if (signature.Arguments.Length != 1)
483 {
484 throw new TargetParameterCountException(SR.Arg_ParmCnt);
485 }
486 StackAllocedArguments stackArgs = default(StackAllocedArguments);
488 bool wrapExceptions = (invokeAttr & BindingFlags.DoNotWrapExceptions) == 0;
489 return RuntimeMethodHandle.InvokeMethod(obj, in arguments, Signature, constructor: false, wrapExceptions);
490 }
Span< object > CheckArguments(ref StackAllocedArguments stackArgs, ReadOnlySpan< object > parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)

References System.SR.Arg_ParmCnt, System.Reflection.MethodBase.CheckArguments(), System.Reflection.RuntimeMethodInfo.CheckConsistency(), System.culture, System.Reflection.RuntimeMethodInfo.InvocationFlags, System.RuntimeMethodHandle.InvokeMethod(), System.obj, System.Reflection.RuntimeMethodInfo.Signature, and System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException().