Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodOnTypeBuilderInstantiation.cs
Go to the documentation of this file.
3
5
7{
9
11
13
14 public override string Name => m_method.Name;
15
16 public override Type DeclaringType => m_type;
17
18 public override Type ReflectedType => m_type;
19
20 public override Module Module => m_method.Module;
21
23
25
26 public override CallingConventions CallingConvention => m_method.CallingConvention;
27
29
31
32 public override bool IsGenericMethod => m_method.IsGenericMethod;
33
34 public override Type ReturnType => m_method.ReturnType;
35
37 {
38 get
39 {
40 throw new NotSupportedException();
41 }
42 }
43
45 {
46 get
47 {
48 throw new NotSupportedException();
49 }
50 }
51
53 {
54 return new MethodOnTypeBuilderInstantiation(method, type);
55 }
56
62
63 internal override Type[] GetParameterTypes()
64 {
66 }
67
68 public override object[] GetCustomAttributes(bool inherit)
69 {
70 return m_method.GetCustomAttributes(inherit);
71 }
72
73 public override object[] GetCustomAttributes(Type attributeType, bool inherit)
74 {
75 return m_method.GetCustomAttributes(attributeType, inherit);
76 }
77
78 public override bool IsDefined(Type attributeType, bool inherit)
79 {
80 return m_method.IsDefined(attributeType, inherit);
81 }
82
83 public override ParameterInfo[] GetParameters()
84 {
85 return m_method.GetParameters();
86 }
87
92
93 public override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
94 {
95 throw new NotSupportedException();
96 }
97
98 public override Type[] GetGenericArguments()
99 {
101 }
102
104 {
105 return m_method;
106 }
107
108 [RequiresUnreferencedCode("If some of the generic arguments are annotated (either with DynamicallyAccessedMembersAttribute, or generic constraints), trimming can't validate that the requirements of those annotations are met.")]
109 public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
110 {
112 {
114 }
115 return MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs);
116 }
117
119 {
120 throw new NotSupportedException();
121 }
122}
static MethodInfo MakeGenericMethod(MethodInfo method, Type[] inst)
override object Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
static MethodInfo GetMethod(MethodInfo method, TypeBuilderInstantiation type)
MethodOnTypeBuilderInstantiation(MethodInfo method, TypeBuilderInstantiation type)
bool IsDefined(Type attributeType, bool inherit)
object[] GetCustomAttributes(bool inherit)
virtual Type[] GetParameterTypes()
virtual bool IsGenericMethodDefinition
Definition MethodBase.cs:80
virtual CallingConventions CallingConvention
Definition MethodBase.cs:28
ParameterInfo[] GetParameters()
MethodAttributes Attributes
Definition MethodBase.cs:24
RuntimeMethodHandle MethodHandle
Definition MethodBase.cs:84
MethodImplAttributes GetMethodImplementationFlags()
virtual bool ContainsGenericParameters
Definition MethodBase.cs:82
override MemberTypes MemberType
Definition MethodInfo.cs:8
override Type[] GetGenericArguments()
Definition MethodInfo.cs:30
static string Arg_NotGenericMethodDefinition
Definition SR.cs:344
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7