Merge pull request #1385 from BrzVlad/fin-hash
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / _FieldInfo.cs
index 61c6206ed2ca703ddb457515ac67c85d7d363036..4383dca5f6665728ba0a38b213a3477004ae34f5 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 ("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
+#if !FULL_AOT_RUNTIME
+       [TypeLibImportClass (typeof (FieldInfo))]
+#endif
+       [ComVisible (true)]
        public interface _FieldInfo
        {
-               bool Equals (object obj);
+               bool Equals (object other);
 
                object[] GetCustomAttributes (bool inherit);
 
@@ -28,6 +30,15 @@ namespace System.Runtime.InteropServices
 
                Type GetType ();
 
+               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);
+
                object GetValue (object obj);
 
                object GetValueDirect (TypedReference obj);
@@ -81,4 +92,3 @@ namespace System.Runtime.InteropServices
                Type ReflectedType {get;}
        }
 }
-#endif