Rename gtest-235-exe.cs to gtest-235.cs
[mono.git] / mcs / ilasm / codegen / Sentinel.cs
1 //
2 // Mono.ILASM.SentinelTypeRef
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9
10 using System;
11
12 namespace Mono.ILASM {
13
14         public class SentinelTypeRef : BaseTypeRef {
15
16                 public SentinelTypeRef ()
17                         : base ("...")
18                 {
19                 }
20
21                 public override void Resolve (CodeGen code_gen)
22                 {
23                         if (is_resolved)
24                                 return;
25
26                         type = new PEAPI.Sentinel ();
27                         type = Modify (code_gen, type);
28
29                         is_resolved = true;
30                 }
31
32                 protected override BaseMethodRef CreateMethodRef (BaseTypeRef ret_type, PEAPI.CallConv call_conv,
33                                 string name, BaseTypeRef[] param, int gen_param_count)
34                 {
35                         return new TypeSpecMethodRef (this, call_conv, ret_type, name, param, gen_param_count);
36                 }
37
38                 protected override IFieldRef CreateFieldRef (BaseTypeRef ret_type, string name)
39                 {
40                         return new TypeSpecFieldRef (this, ret_type, name);
41                 }
42
43                 public override string ToString ()
44                 {
45                         return "Sentinel  " + full_name;
46                 }
47         }
48
49 }
50