* IFieldRef.cs: New file - interface field references must implement
[mono.git] / mcs / ilasm / codegen / GlobalFieldRef.cs
1 //
2 // Mono.ILASM.GlobalFieldRef
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9
10
11 using System;
12
13 namespace Mono.ILASM {
14
15
16         public class GlobalFieldRef : IFieldRef {
17
18                 private ITypeRef ret_type;
19                 private string name;
20
21                 private PEAPI.Field peapi_field;
22
23                 public GlobalFieldRef (ITypeRef ret_type, string name)
24                 {
25                         this.ret_type = ret_type;
26                         this.name = name;
27                 }
28
29                 public PEAPI.Field PeapiField {
30                         get { return peapi_field; }
31                 }
32
33                 public void Resolve (CodeGen code_gen)
34                 {
35                         peapi_field = code_gen.ResolveField (name);
36                 }
37         }
38 }
39