2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / codegen / GenericMethodRef.cs
blob81255f1433b2dc669f67a05d4db4cf1700357784
1 //
2 // Mono.ILASM.GenericMethodRef
3 //
4 // Author(s):
5 // Jackson Harper (jackson@ximian.com)
6 //
7 // (C) 2003 Ximian, Inc (http://www.ximian.com)
8 //
11 using System;
13 namespace Mono.ILASM {
15 public class GenericMethodRef : BaseMethodRef {
17 private BaseMethodRef meth;
18 private GenericMethodSig sig;
20 public GenericMethodRef (BaseMethodRef meth, GenericMethodSig sig)
21 : base (null, meth.CallConv, null, "", null, 0)
23 this.meth = meth;
24 this.sig = sig;
25 is_resolved = false;
28 public override PEAPI.CallConv CallConv {
29 get { return meth.CallConv; }
30 set { meth.CallConv = value; }
33 public override void Resolve (CodeGen code_gen)
35 if (is_resolved)
36 return;
38 meth.Resolve (code_gen);
39 peapi_method = code_gen.PEFile.AddMethodSpec (meth.PeapiMethod, sig.Resolve (code_gen));
41 is_resolved = true;