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

◆ SymbolMethod()

System.Reflection.Emit.SymbolMethod.SymbolMethod ( ModuleBuilder mod,
int token,
Type arrayClass,
string methodName,
CallingConventions callingConvention,
Type returnType,
Type[] parameterTypes )
inlinepackage

Definition at line 53 of file SymbolMethod.cs.

54 {
55 m_token = token;
56 m_returnType = returnType ?? typeof(void);
57 if (parameterTypes != null)
58 {
59 m_parameterTypes = new Type[parameterTypes.Length];
60 Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length);
61 }
62 else
63 {
65 }
66 m_module = mod;
67 m_containingType = arrayClass;
68 m_name = methodName;
69 m_callingConvention = callingConvention;
70 SignatureHelper.GetMethodSigHelper(mod, callingConvention, returnType, null, null, parameterTypes, null, null);
71 }
CallingConventions m_callingConvention
static readonly Type[] EmptyTypes
Definition Type.cs:19

References System.Array.Copy(), System.Type.EmptyTypes, System.Reflection.Emit.SignatureHelper.GetMethodSigHelper(), System.Reflection.Emit.SymbolMethod.m_callingConvention, System.Reflection.Emit.SymbolMethod.m_containingType, System.Reflection.Emit.SymbolMethod.m_module, System.Reflection.Emit.SymbolMethod.m_name, System.Reflection.Emit.SymbolMethod.m_parameterTypes, System.Reflection.Emit.SymbolMethod.m_returnType, and System.Reflection.Emit.SymbolMethod.m_token.