MCPcopy Create free account
hub / github.com/Tencent/xLua / MakeGenericMethod

Method MakeGenericMethod

Assets/XLua/Src/Editor/Hotfix.cs:182–192  ·  view source on GitHub ↗
(this MethodReference self, params TypeReference[] arguments)

Source from the content-addressed store, hash-verified

180 }
181
182 public static MethodReference MakeGenericMethod(this MethodReference self, params TypeReference[] arguments)
183 {
184 if (self.GenericParameters.Count != arguments.Length)
185 throw new ArgumentException();
186
187 var instance = new GenericInstanceMethod(self);
188 foreach (var argument in arguments)
189 instance.GenericArguments.Add(argument);
190
191 return instance;
192 }
193
194 public static FieldReference GetGeneric(this FieldDefinition definition)
195 {

Callers 7

tryMakeGenericMethodMethod · 0.80
EmitGetObjectMethod · 0.80
GenericMethodWraperFunction · 0.80
injectGenericMethodMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected