2004-01-04 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System.Reflection / MethodInfo.cs
1 //
2 // System.Reflection/MethodInfo.cs
3 //
4 // Author:
5 //   Paolo Molaro (lupus@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System;
11 using System.Runtime.CompilerServices;
12 using System.Runtime.InteropServices;
13
14 namespace System.Reflection {
15
16         [Serializable]
17         [ClassInterface(ClassInterfaceType.AutoDual)]
18         public abstract class MethodInfo: MethodBase {
19
20                 public abstract MethodInfo GetBaseDefinition();
21
22                 protected MethodInfo() {
23                 }
24                 public override MemberTypes MemberType { get {return MemberTypes.Method;} }
25                 public abstract Type ReturnType { get; }
26                 public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; } 
27
28 #if NET_1_2
29                 public extern bool IsGenericMethodDefinition {
30                         [MethodImplAttribute(MethodImplOptions.InternalCall)]
31                         get;
32                 }
33
34                 public abstract Type [] GetGenericArguments ();
35
36                 [MethodImplAttribute(MethodImplOptions.InternalCall)]
37                 public extern MethodInfo BindGenericParameters (Type [] types);
38 #endif
39         }
40
41 }