-//\r
-// System.Runtime.InteropServices._EventInfo interface\r
-//\r
-// Author:\r
-// Kazuki Oikawa (kazuki@panicode.com)\r
-//\r
-\r
-#if NET_2_0\r
-\r
-using System;\r
-using System.Reflection;\r
-\r
-namespace System.Runtime.InteropServices\r
-{\r
- [CLSCompliant (false)]\r
- [InterfaceType (ComInterfaceType.InterfaceIsDual)]\r
- [Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]\r
- public interface _EventInfo\r
- {\r
- void AddEventHandler (object target, Delegate handler);\r
-\r
- bool Equals (object obj);\r
-\r
- MethodInfo GetAddMethod ();\r
-\r
- MethodInfo GetAddMethod (bool nonPublic);\r
-\r
- object[] GetCustomAttributes (bool inherit);\r
-\r
- object[] GetCustomAttributes (Type attributeType, bool inherit);\r
-\r
- int GetHashCode ();\r
-\r
- MethodInfo GetRaiseMethod ();\r
-\r
- MethodInfo GetRaiseMethod (bool nonPublic);\r
-\r
- MethodInfo GetRemoveMethod ();\r
-\r
- MethodInfo GetRemoveMethod (bool nonPublic);\r
-\r
- Type GetType ();\r
-\r
- bool IsDefined (Type attributeType, bool inherit);\r
-\r
- void RemoveEventHandler (object target, Delegate handler);\r
-\r
- string ToString ();\r
-\r
- EventAttributes Attributes {get;}\r
-\r
- Type DeclaringType {get;}\r
-\r
- Type EventHandlerType {get;}\r
-\r
- bool IsMulticast {get;}\r
-\r
- bool IsSpecialName {get;}\r
-\r
- MemberTypes MemberType {get;}\r
-\r
- string Name {get;}\r
-\r
- Type ReflectedType {get;}\r
- }\r
-}\r
-#endif
\ No newline at end of file
+//
+// System.Runtime.InteropServices._EventInfo interface
+//
+// Author:
+// Kazuki Oikawa (kazuki@panicode.com)
+//
+
+using System;
+using System.Reflection;
+
+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 other);
+
+ MethodInfo GetAddMethod ();
+
+ MethodInfo GetAddMethod (bool nonPublic);
+
+ object[] GetCustomAttributes (bool inherit);
+
+ object[] GetCustomAttributes (Type attributeType, bool inherit);
+
+ int GetHashCode ();
+
+ 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);
+
+ MethodInfo GetRaiseMethod ();
+
+ MethodInfo GetRaiseMethod (bool nonPublic);
+
+ MethodInfo GetRemoveMethod ();
+
+ MethodInfo GetRemoveMethod (bool nonPublic);
+
+ Type GetType ();
+
+ bool IsDefined (Type attributeType, bool inherit);
+
+ void RemoveEventHandler (object target, Delegate handler);
+
+ string ToString ();
+
+ EventAttributes Attributes {get;}
+
+ Type DeclaringType {get;}
+
+ Type EventHandlerType {get;}
+
+ bool IsMulticast {get;}
+
+ bool IsSpecialName {get;}
+
+ MemberTypes MemberType {get;}
+
+ string Name {get;}
+
+ Type ReflectedType {get;}
+ }
+}