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

◆ InvocationFlags

INVOCATION_FLAGS System.Reflection.RuntimeMethodInfo.InvocationFlags
getpackage

Definition at line 39 of file RuntimeMethodInfo.cs.

40 {
41 [MethodImpl(MethodImplOptions.AggressiveInlining)]
42 get
43 {
44 INVOCATION_FLAGS iNVOCATION_FLAGS = m_invocationFlags;
45 if ((iNVOCATION_FLAGS & INVOCATION_FLAGS.INVOCATION_FLAGS_INITIALIZED) == 0)
46 {
48 }
49 return iNVOCATION_FLAGS;
50 [MethodImpl(MethodImplOptions.NoInlining)]
51 INVOCATION_FLAGS LazyCreateInvocationFlags()
52 {
53 INVOCATION_FLAGS iNVOCATION_FLAGS2 = INVOCATION_FLAGS.INVOCATION_FLAGS_UNKNOWN;
55 if (ContainsGenericParameters || IsDisallowedByRefType(ReturnType) || (declaringType != null && declaringType.ContainsGenericParameters) || (CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
56 {
57 iNVOCATION_FLAGS2 = INVOCATION_FLAGS.INVOCATION_FLAGS_NO_INVOKE;
58 }
59 else if ((declaringType != null && declaringType.IsByRefLike) || ReturnType.IsByRefLike)
60 {
61 iNVOCATION_FLAGS2 |= INVOCATION_FLAGS.INVOCATION_FLAGS_CONTAINS_STACK_POINTERS;
62 }
63 return m_invocationFlags = iNVOCATION_FLAGS2 | INVOCATION_FLAGS.INVOCATION_FLAGS_INITIALIZED;
64 }
65 }
66 }
static bool IsDisallowedByRefType(Type type)

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