Merge pull request #1135 from kitsilanosoftware/rpm-spec-dead-entries
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _MethodInfo.cs
index b55da1f9f85226f1314a5f37bd90ce73b8fbe6a1..e8180ad7bf1a8a16094f89a7ed56dd74133f0e87 100644 (file)
@@ -5,8 +5,6 @@
 //   Kazuki Oikawa  (kazuki@panicode.com)
 //
 
-#if NET_1_1
-
 using System;
 using System.Globalization;
 using System.Reflection;
@@ -14,11 +12,15 @@ using System.Reflection;
 namespace System.Runtime.InteropServices
 {
        [CLSCompliant (false)]
-       [InterfaceType (ComInterfaceType.InterfaceIsDual)]
+       [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        [Guid ("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F")]
+#if !FULL_AOT_RUNTIME
+       [TypeLibImportClass (typeof (MethodInfo))]
+#endif
+       [ComVisible (true)]
        public interface _MethodInfo
        {
-               bool Equals (object obj);
+               bool Equals (object other);
 
                MethodInfo GetBaseDefinition();
                
@@ -31,7 +33,16 @@ namespace System.Runtime.InteropServices
                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);
@@ -87,4 +98,3 @@ namespace System.Runtime.InteropServices
                ICustomAttributeProvider ReturnTypeCustomAttributes {get;}
        }
 }
-#endif