Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _EventInfo.cs
index ca503b25cc54323dec7b73c82e2316dfee07d86a..4b6aae76c3f01a8ea8d2f20a3383c4ab346b81d0 100644 (file)
@@ -5,8 +5,6 @@
 //   Kazuki Oikawa  (kazuki@panicode.com)
 //
 
-#if NET_1_1
-
 using System;
 using System.Reflection;
 
@@ -15,12 +13,15 @@ namespace System.Runtime.InteropServices
        [CLSCompliant (false)]
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]
+#if !FULL_AOT_RUNTIME
        [TypeLibImportClass (typeof (EventInfo))]
+#endif
+       [ComVisible (true)]
        public interface _EventInfo
        {
                void AddEventHandler (object target, Delegate handler);
 
-               bool Equals (object obj);
+               bool Equals (object other);
 
                MethodInfo GetAddMethod ();
 
@@ -74,4 +75,3 @@ namespace System.Runtime.InteropServices
                Type ReflectedType {get;}
        }
 }
-#endif