Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SymbolMethod.cs
Go to the documentation of this file.
2
4
5internal sealed class SymbolMethod : MethodInfo
6{
8
10
11 private string m_name;
12
14
16
17 private int m_token;
18
20
21 public override int MetadataToken => m_token;
22
23 public override Module Module => m_module;
24
26
27 public override string Name => m_name;
28
30
32 {
33 get
34 {
36 }
37 }
38
39 public override CallingConventions CallingConvention => m_callingConvention;
40
42 {
43 get
44 {
46 }
47 }
48
49 public override Type ReturnType => m_returnType;
50
52
53 internal SymbolMethod(ModuleBuilder mod, int token, Type arrayClass, string methodName, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
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 }
72
73 internal override Type[] GetParameterTypes()
74 {
75 return m_parameterTypes;
76 }
77
82
87
92
93 public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
94 {
96 }
97
98 public override MethodInfo GetBaseDefinition()
99 {
100 return this;
101 }
102
103 public override object[] GetCustomAttributes(bool inherit)
104 {
106 }
107
108 public override object[] GetCustomAttributes(Type attributeType, bool inherit)
109 {
111 }
112
113 public override bool IsDefined(Type attributeType, bool inherit)
114 {
116 }
117
119 {
120 return m_module;
121 }
122}
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624
static int GetArrayMethodToken(QCallModule module, int tkTypeSpec, string methodName, byte[] signature, int sigLength)
static SignatureHelper GetMethodSigHelper(Module? mod, Type? returnType, Type[]? parameterTypes)
override MethodImplAttributes GetMethodImplementationFlags()
override MethodAttributes Attributes
override ICustomAttributeProvider ReturnTypeCustomAttributes
override MethodInfo GetBaseDefinition()
int GetToken(ModuleBuilder mod)
SymbolMethod(ModuleBuilder mod, int token, Type arrayClass, string methodName, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
override ParameterInfo[] GetParameters()
override RuntimeMethodHandle MethodHandle
override bool IsDefined(Type attributeType, bool inherit)
override object[] GetCustomAttributes(bool inherit)
CallingConventions m_callingConvention
override object[] GetCustomAttributes(Type attributeType, bool inherit)
override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
static string NotSupported_SymbolMethod
Definition SR.cs:1716
Definition SR.cs:7
static readonly Type[] EmptyTypes
Definition Type.cs:19