2004-02-12 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection / MemberInfo.cs
1 //
2 // System.Reflection.MemberInfo.cs
3 //
4 // Author:
5 //   Miguel de Icaza (miguel@ximian.com)
6 //
7 // (C) Ximian, Inc.  http://www.ximian.com
8 //
9 // TODO: Mucho left to implement.
10 //
11
12 using System.Runtime.InteropServices;
13
14 namespace System.Reflection {
15
16         [Serializable]
17         [ClassInterface(ClassInterfaceType.AutoDual)]
18         public abstract class MemberInfo : ICustomAttributeProvider {
19
20                 internal MemberInfo () {}
21                 
22                 public abstract Type DeclaringType {
23                         get;
24                 }
25
26                 public abstract MemberTypes MemberType {
27                         get;
28                 }
29
30                 public abstract string Name {
31                         get;
32                 }
33
34                 public abstract Type ReflectedType {
35                         get;
36                 }
37
38                 public abstract bool IsDefined (Type attribute_type, bool inherit);
39
40                 public abstract object [] GetCustomAttributes (bool inherit);
41
42                 public abstract object [] GetCustomAttributes (Type attribute_type, bool inherit);
43         }
44 }