2 // System.Runtime.InteropServices._MethodInfo interface
5 // Kazuki Oikawa (kazuki@panicode.com)
9 using System.Globalization;
10 using System.Reflection;
12 namespace System.Runtime.InteropServices
14 [CLSCompliant (false)]
15 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
16 [Guid ("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F")]
18 [TypeLibImportClass (typeof (MethodInfo))]
21 public interface _MethodInfo
23 bool Equals (object other);
25 MethodInfo GetBaseDefinition();
27 object[] GetCustomAttributes (bool inherit);
29 object[] GetCustomAttributes (Type attributeType, bool inherit);
33 MethodImplAttributes GetMethodImplementationFlags ();
35 ParameterInfo[] GetParameters ();
37 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
39 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
41 void GetTypeInfoCount (out uint pcTInfo);
43 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
44 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
48 object Invoke (object obj, object[] parameters);
50 object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
52 bool IsDefined(Type attributeType, bool inherit);
56 MethodAttributes Attributes {get;}
58 CallingConventions CallingConvention {get;}
60 Type DeclaringType {get;}
62 bool IsAbstract {get;}
64 bool IsAssembly {get;}
66 bool IsConstructor {get;}
70 bool IsFamilyAndAssembly {get;}
72 bool IsFamilyOrAssembly {get;}
76 bool IsHideBySig {get;}
82 bool IsSpecialName {get;}
88 MemberTypes MemberType {get;}
90 RuntimeMethodHandle MethodHandle {get;}
94 Type ReflectedType {get;}
96 Type ReturnType {get;}
98 ICustomAttributeProvider ReturnTypeCustomAttributes {get;}