2003-10-17 Zoltan Varga <vargaz@freemail.hu>
[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
13 namespace System.Reflection {
14
15         [Serializable]
16         public abstract class MethodInfo: MethodBase {
17
18                 public abstract MethodInfo GetBaseDefinition();
19
20                 protected MethodInfo() {
21                 }
22                 public override MemberTypes MemberType { get {return MemberTypes.Method;} }
23                 public abstract Type ReturnType { get; }
24                 public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; } 
25
26 #if GENERICS
27                 public extern bool IsGenericMethodDefinition {
28                         [MethodImplAttribute(MethodImplOptions.InternalCall)]
29                         get;
30                 }
31
32                 [MethodImplAttribute(MethodImplOptions.InternalCall)]
33                 public extern Type [] GetGenericArguments ();
34
35                 [MethodImplAttribute(MethodImplOptions.InternalCall)]
36                 public extern MethodInfo BindGenericParameters (Type [] types);
37 #endif
38         }
39
40 }