more class status updates:
[mono.git] / mcs / tools / corcompare / MissingMethod.cs
1 // Mono.Util.CorCompare.MissingMethod
2 //
3 // Author(s):
4 //   Nick Drochak (ndrochak@gol.com)
5 //
6 // (C) 2001-2002 Nick Drochak
7
8 using System;
9 using System.Reflection;
10 using System.Text;
11
12 namespace Mono.Util.CorCompare {
13
14         /// <summary>
15         ///     Represents a class method that is completely missing
16         /// </summary>
17         /// <remarks>
18         ///     created by - Nick
19         ///     created on - 2/20/2002 10:43:57 PM
20         /// </remarks>
21         class MissingMethod : MissingMember 
22         {
23                 // e.g. <method name="Equals" status="missing"/>
24                 public MissingMethod (MemberInfo infoMono, MemberInfo infoMS) : base (infoMono, infoMS) {}
25
26                 public override string Name {
27                         get {
28                                 string s = Info.ToString();
29                                 int index = s.IndexOf(' ');
30                                 return s.Substring(index + 1);
31                         }
32                 }
33
34                 public override string Type {
35                         get {
36                                 return "method";
37                         }
38                 }
39         }
40 }