Merge branch 'master' into handle-fixes-part1
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _MethodBase.cs
index b8d9518acc85e94a2b3883a52f806a725170acec..ca9013200cc740e38920929a4d9e535430b63928 100644 (file)
@@ -1,84 +1,94 @@
-//\r
-// System.Runtime.InteropServices._MethodBase interface\r
-//\r
-// Author:\r
-//   Kazuki Oikawa  (kazuki@panicode.com)\r
-//\r
-\r
-#if NET_2_0\r
-\r
-using System;\r
-using System.Globalization;\r
-using System.Reflection;\r
-\r
-namespace System.Runtime.InteropServices\r
-{\r
-       [CLSCompliant (false)]\r
-       [InterfaceType (ComInterfaceType.InterfaceIsDual)]\r
-       [Guid ("6240837A-707F-3181-8E98-A36AE086766B")]\r
-       public interface _MethodBase\r
-       {\r
-               bool Equals (object obj);\r
-               \r
-               object[] GetCustomAttributes (bool inherit);\r
-               \r
-               object[] GetCustomAttributes (Type attributeType, bool inherit);\r
-               \r
-               int GetHashCode ();\r
-\r
-               MethodImplAttributes GetMethodImplementationFlags ();\r
-               \r
-               ParameterInfo[] GetParameters ();\r
-               \r
-               Type GetType ();\r
-\r
-               object Invoke (object obj, object[] parameters);\r
-               \r
-               object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);\r
-               \r
-               bool IsDefined(Type attributeType, bool inherit);\r
-               \r
-               string ToString ();\r
-\r
-               MethodAttributes Attributes {get;}\r
-\r
-               CallingConventions CallingConvention {get;}\r
-\r
-               Type DeclaringType {get;}\r
-\r
-               bool IsAbstract {get;}\r
-\r
-               bool IsAssembly {get;}\r
-\r
-               bool IsConstructor {get;}\r
-\r
-               bool IsFamily {get;}\r
-\r
-               bool IsFamilyAndAssembly {get;}\r
-\r
-               bool IsFamilyOrAssembly {get;}\r
-\r
-               bool IsFinal {get;}\r
-\r
-               bool IsHideBySig {get;}\r
-\r
-               bool IsPrivate {get;}\r
-\r
-               bool IsPublic {get;}\r
-\r
-               bool IsSpecialName {get;}\r
-\r
-               bool IsStatic {get;}\r
-\r
-               bool IsVirtual {get;}\r
-\r
-               MemberTypes MemberType {get;}\r
-\r
-               RuntimeMethodHandle MethodHandle {get;}\r
-\r
-               string Name {get;}\r
-\r
-               Type ReflectedType {get;}\r
-       }\r
-}\r
-#endif
\ No newline at end of file
+//
+// System.Runtime.InteropServices._MethodBase interface
+//
+// Author:
+//   Kazuki Oikawa  (kazuki@panicode.com)
+//
+
+using System;
+using System.Globalization;
+using System.Reflection;
+
+namespace System.Runtime.InteropServices
+{
+       [CLSCompliant (false)]
+       [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
+       [Guid ("6240837A-707F-3181-8E98-A36AE086766B")]
+#if !FULL_AOT_RUNTIME
+       [TypeLibImportClass (typeof (MethodBase))]
+#endif
+       [ComVisible (true)]
+       public interface _MethodBase
+       {
+               bool Equals (object other);
+               
+               object[] GetCustomAttributes (bool inherit);
+               
+               object[] GetCustomAttributes (Type attributeType, bool inherit);
+               
+               int GetHashCode ();
+
+               MethodImplAttributes GetMethodImplementationFlags ();
+               
+               ParameterInfo[] GetParameters ();
+
+               void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
+
+               void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
+
+               void GetTypeInfoCount (out uint pcTInfo);
+
+               void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams,
+                       IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
+               
+               Type GetType ();
+
+               object Invoke (object obj, object[] parameters);
+               
+               object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture);
+               
+               bool IsDefined(Type attributeType, bool inherit);
+               
+               string ToString ();
+
+               MethodAttributes Attributes {get;}
+
+               CallingConventions CallingConvention {get;}
+
+               Type DeclaringType {get;}
+
+               bool IsAbstract {get;}
+
+               bool IsAssembly {get;}
+
+               bool IsConstructor {get;}
+
+               bool IsFamily {get;}
+
+               bool IsFamilyAndAssembly {get;}
+
+               bool IsFamilyOrAssembly {get;}
+
+               bool IsFinal {get;}
+
+               bool IsHideBySig {get;}
+
+               bool IsPrivate {get;}
+
+               bool IsPublic {get;}
+
+               bool IsSpecialName {get;}
+
+               bool IsStatic {get;}
+
+               bool IsVirtual {get;}
+
+               MemberTypes MemberType {get;}
+
+               RuntimeMethodHandle MethodHandle {get;}
+
+               string Name {get;}
+
+               Type ReflectedType {get;}
+       }
+}