2 // Mono.ILASM.TypeSpecFieldRef
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 JacksonHarper, All rights reserved
14 namespace Mono
.ILASM
{
16 public class TypeSpecFieldRef
: IFieldRef
{
18 private BaseTypeRef owner
;
19 private BaseTypeRef type
;
22 private PEAPI
.FieldRef peapi_field
;
23 private bool is_resolved
;
25 public TypeSpecFieldRef (BaseTypeRef owner
, BaseTypeRef type
, string name
)
34 public PEAPI
.Field PeapiField
{
35 get { return peapi_field; }
38 public void Resolve (CodeGen code_gen
)
43 owner
.Resolve (code_gen
);
45 type
.Resolve (code_gen
);
46 peapi_field
= code_gen
.PEFile
.AddFieldToTypeSpec (owner
.PeapiType
, name
, type
.PeapiType
);