MethodInfo.cs 950 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. namespace System.Reflection {
  12. [Serializable]
  13. public abstract class MethodInfo: MethodBase {
  14. public abstract MethodInfo GetBaseDefinition();
  15. protected MethodInfo() {
  16. }
  17. public override MemberTypes MemberType { get {return MemberTypes.Method;} }
  18. public abstract Type ReturnType { get; }
  19. public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; }
  20. #if GENERICS
  21. public extern bool IsGenericMethodDefinition {
  22. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  23. get;
  24. }
  25. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  26. public extern Type [] GetGenericArguments ();
  27. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  28. public extern MethodInfo BindGenericParameters (Type [] types);
  29. #endif
  30. }
  31. }