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