MethodInfo.cs 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // System.Reflection/MethodInfo.cs
  3. //
  4. // Author:
  5. // Paolo Molaro ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. using System.Runtime.CompilerServices;
  11. using System.Runtime.InteropServices;
  12. namespace System.Reflection {
  13. [Serializable]
  14. [ClassInterface(ClassInterfaceType.AutoDual)]
  15. public abstract class MethodInfo: MethodBase {
  16. public abstract MethodInfo GetBaseDefinition();
  17. protected MethodInfo() {
  18. }
  19. public override MemberTypes MemberType { get {return MemberTypes.Method;} }
  20. public abstract Type ReturnType { get; }
  21. public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; }
  22. #if NET_1_2
  23. public extern bool IsGenericMethodDefinition {
  24. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  25. get;
  26. }
  27. public abstract Type [] GetGenericArguments ();
  28. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  29. public extern MethodInfo BindGenericParameters (Type [] types);
  30. #endif
  31. }
  32. }