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 //
9 
10 
11 using System;
12 
13 namespace Mono.ILASM {
14 
15         public class GenericMethodRef : BaseMethodRef {
16 
17                 private BaseMethodRef meth;
18                 private GenericMethodSig sig;
19 
GenericMethodRef(BaseMethodRef meth, GenericMethodSig sig)20                 public GenericMethodRef (BaseMethodRef meth, GenericMethodSig sig)
21                         : base (null, meth.CallConv, null, "", null, 0)
22                 {
23                         this.meth = meth;
24                         this.sig = sig;
25                         is_resolved = false;
26                 }
27 
28                 public override PEAPI.CallConv CallConv {
29                         get { return meth.CallConv; }
30                         set { meth.CallConv = value; }
31                 }
32 
Resolve(CodeGen code_gen)33                 public override void Resolve (CodeGen code_gen)
34                 {
35                         if (is_resolved)
36                                 return;
37 
38                         meth.Resolve (code_gen);
39                         peapi_method = code_gen.PEFile.AddMethodSpec (meth.PeapiMethod, sig.Resolve (code_gen));
40 
41                         is_resolved = true;
42                 }
43         }
44 
45 }
46 
47