2 // Mono.ILASM.ExternTypeRef
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
13 namespace Mono.ILASM {
16 /// A reference to a type in another assembly
18 public class ExternTypeRef : PeapiTypeRef, IClassRef {
20 public ExternTypeRef (PEAPI.ClassRef extern_type,
21 string full_name) : base (extern_type, full_name)
26 public PEAPI.Class PeapiClass {
28 return PeapiType as PEAPI.Class;
32 public PEAPI.ClassRef PeapiClassRef {
34 return PeapiType as PEAPI.ClassRef;
38 public IMethodRef GetMethodRef (ITypeRef ret_type, PEAPI.CallConv call_conv,
39 string name, ITypeRef[] param)
41 return new ExternMethodRef (this, ret_type, call_conv, name, param);
44 public IFieldRef GetFieldRef (ITypeRef ret_type, string name)
46 return new ExternFieldRef (this, ret_type, name);
49 public IClassRef AsClassRef (CodeGen code_gen)