add constructor parameters
[mono.git] / mcs / tools / corcompare / MissingConstructor.cs
1 // Mono.Util.CorCompare.MissingConstructor
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
11 namespace Mono.Util.CorCompare {
12
13         /// <summary>
14         ///     Represents a class event that is completely missing
15         /// </summary>
16         /// <remarks>
17         ///     created by - Nick
18         ///     created on - 2/24/2002 10:43:57 PM
19         /// </remarks>
20         class MissingConstructor : IMissingMember {
21                 // e.g. <method name="Equals" status="missing"/>
22                 MemberInfo mInfo;
23
24                 public MissingConstructor(MemberInfo info) {
25                         mInfo = info;
26                 }
27
28                 public string Name {
29                         get {
30                                 //return mInfo.Name;
31                                 string s = mInfo.ToString();
32                                 int index = s.IndexOf(' ');
33                                 return s.Substring(index + 1);
34                         }
35                 }
36
37                 public virtual string Status {
38                         get {
39                                 return "missing";
40                         }
41                 }
42
43                 public string Type {
44                         get {
45                                 return "constructor";
46                         }
47                 }
48         }
49 }