2 // Mono.ILASM.GlobalMethodRef
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
12 using System.Collections;
14 namespace Mono.ILASM {
16 public class GlobalMethodRef : IMethodRef {
18 private ITypeRef ret_type;
20 private ITypeRef[] param;
22 private PEAPI.Method peapi_method;
24 public GlobalMethodRef (ITypeRef ret_type, string name, ITypeRef[] param)
26 this.ret_type = ret_type;
31 public PEAPI.Method PeapiMethod {
32 get { return peapi_method; }
35 public void Resolve (CodeGen code_gen)
37 string sig = MethodDef.CreateSignature (name, new ArrayList (param));
38 peapi_method = code_gen.ResolveMethod (sig);