Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ConstructorOnTypeBuilderInstantiation.cs
Go to the documentation of this file.
2
4
6{
8
10
12
13 public override string Name => m_ctor.Name;
14
15 public override Type DeclaringType => m_type;
16
17 public override Type ReflectedType => m_type;
18
19 public override int MetadataToken
20 {
21 get
22 {
23 ConstructorBuilder constructorBuilder = m_ctor as ConstructorBuilder;
24 if (constructorBuilder != null)
25 {
26 return constructorBuilder.MetadataToken;
27 }
28 return m_ctor.MetadataToken;
29 }
30 }
31
32 public override Module Module => m_ctor.Module;
33
35
37
38 public override CallingConventions CallingConvention => m_ctor.CallingConvention;
39
40 public override bool IsGenericMethodDefinition => false;
41
42 public override bool ContainsGenericParameters => false;
43
44 public override bool IsGenericMethod => false;
45
50
56
57 internal override Type[] GetParameterTypes()
58 {
60 }
61
62 internal override Type GetReturnType()
63 {
64 return m_type;
65 }
66
67 public override object[] GetCustomAttributes(bool inherit)
68 {
69 return m_ctor.GetCustomAttributes(inherit);
70 }
71
72 public override object[] GetCustomAttributes(Type attributeType, bool inherit)
73 {
74 return m_ctor.GetCustomAttributes(attributeType, inherit);
75 }
76
77 public override bool IsDefined(Type attributeType, bool inherit)
78 {
79 return m_ctor.IsDefined(attributeType, inherit);
80 }
81
82 public override ParameterInfo[] GetParameters()
83 {
84 return m_ctor.GetParameters();
85 }
86
91
92 public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
93 {
94 throw new NotSupportedException();
95 }
96
97 public override Type[] GetGenericArguments()
98 {
100 }
101
102 public override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
103 {
104 throw new InvalidOperationException();
105 }
106}
override object Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
static ConstructorInfo GetConstructor(ConstructorInfo Constructor, TypeBuilderInstantiation type)
ConstructorOnTypeBuilderInstantiation(ConstructorInfo constructor, TypeBuilderInstantiation type)
override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
bool IsDefined(Type attributeType, bool inherit)
object[] GetCustomAttributes(bool inherit)
virtual Type[] GetParameterTypes()
virtual CallingConventions CallingConvention
Definition MethodBase.cs:28
ParameterInfo[] GetParameters()
MethodAttributes Attributes
Definition MethodBase.cs:24
RuntimeMethodHandle MethodHandle
Definition MethodBase.cs:84
MethodImplAttributes GetMethodImplementationFlags()
virtual Type[] GetGenericArguments()