5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
13 namespace Mono
.ILASM
{
16 public class FieldRef
: IFieldRef
{
18 private TypeRef owner
;
19 private ITypeRef ret_type
;
22 private bool is_resolved
;
23 private PEAPI
.Field peapi_field
;
25 public FieldRef (TypeRef owner
, ITypeRef ret_type
, string name
)
28 this.ret_type
= ret_type
;
34 public PEAPI
.Field PeapiField
{
35 get { return peapi_field; }
38 public void Resolve (CodeGen code_gen
)
43 TypeDef owner_def
= code_gen
.TypeManager
[owner
.FullName
];
44 peapi_field
= owner_def
.ResolveField (name
, code_gen
);