* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / tools / corcompare / MissingInterface.cs
1 // Mono.Util.CorCompare.MissingField
2 //
3 // Author(s):
4 //   Piers Haken (piersh@friskit.com)
5 //
6 // (C) 2002 Piers Haken
7
8 using System;
9 using System.Reflection;
10
11 namespace Mono.Util.CorCompare 
12 {
13
14         /// <summary>
15         ///     Represents an interface implemented on a class
16         /// </summary>
17         /// <remarks>
18         ///     created by - Piers
19         ///     created on - 10:34 AM 3/12/2002
20         /// </remarks>
21         class MissingInterface : MissingBase 
22         {
23                 protected Type ifaceMono;
24                 protected Type ifaceMS;
25
26                 // e.g. <method name="Equals" status="missing"/>
27                 public MissingInterface (Type _ifaceMono, Type _ifaceMS)
28                 {
29                         ifaceMono = _ifaceMono;
30                         ifaceMS = _ifaceMS;
31                         m_nodeStatus = new NodeStatus (ifaceMono, ifaceMS);
32                 }
33
34                 public override string Type 
35                 {
36                         get { return "interface"; }
37                 }
38                 public override string Name
39                 {
40                         get { return Interface.FullName; }
41                 }
42                 protected Type Interface
43                 {
44                         get { return (ifaceMono != null) ? ifaceMono : ifaceMS; }
45                 }
46                 public override NodeStatus Analyze ()
47                 {
48                         return m_nodeStatus;
49                 }
50         }
51 }