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))]
20 public interface _MethodInfo
22 bool Equals (object obj);
24 MethodInfo GetBaseDefinition();
26 object[] GetCustomAttributes (bool inherit);
28 object[] GetCustomAttributes (Type attributeType, bool inherit);
32 MethodImplAttributes GetMethodImplementationFlags ();
34 ParameterInfo[] GetParameters ();
36 void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
38 void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
40 void GetTypeInfoCount (out uint pcTInfo);
42 void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
43 IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
47 object Invoke (object obj, object[] parameters);
49 object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
51 bool IsDefined(Type attributeType, bool inherit);
55 MethodAttributes Attributes {get;}
57 CallingConventions CallingConvention {get;}
59 Type DeclaringType {get;}
61 bool IsAbstract {get;}
63 bool IsAssembly {get;}
65 bool IsConstructor {get;}
69 bool IsFamilyAndAssembly {get;}
71 bool IsFamilyOrAssembly {get;}
75 bool IsHideBySig {get;}
81 bool IsSpecialName {get;}
87 MemberTypes MemberType {get;}
89 RuntimeMethodHandle MethodHandle {get;}
93 Type ReflectedType {get;}
95 Type ReturnType {get;}
97 ICustomAttributeProvider ReturnTypeCustomAttributes {get;}