Moved ProviderCollectionTest.cs from System assembly to System.Configuration.
[mono.git] / mcs / class / corlib / System.Reflection / PropertyInfo.cs
index 6a2535832cf75a1e33d4ed7213a486549a4d2624..b979cc6850c8850f2150615c9719260908246a35 100644 (file)
@@ -30,6 +30,7 @@
 using System.Diagnostics;
 using System.Globalization;
 using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
 
 namespace System.Reflection {
 
@@ -71,6 +72,13 @@ namespace System.Reflection {
                
                public abstract ParameterInfo[] GetIndexParameters();
 
+#if ONLY_1_1
+               public new Type GetType ()
+               {
+                       return base.GetType ();
+               }
+#endif
+
                public MethodInfo GetSetMethod()
                {
                        return GetSetMethod (false);
@@ -97,39 +105,44 @@ namespace System.Reflection {
                public abstract void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture);
 
 #if NET_2_0 || BOOTSTRAP_NET_2_0
-               [Obsolete ("Use ParameterInfo.GetOptionalCustomModifiers().")]
-               public virtual Type[] OptionalCustomModifiers {
-                       get {
-                               return GetOptionalCustomModifiers ();
-                       }
-               }
-
-               [Obsolete ("Use ParameterInfo.GetRequiredCustomModifiers().")]
-               public virtual Type[] RequiredCustomModifiers {
-                       get {
-                               return GetRequiredCustomModifiers ();
-                       }
-               }
 
-               [MonoTODO]
                public virtual Type[] GetOptionalCustomModifiers () {
-                       throw new NotImplementedException ();
+                       return Type.EmptyTypes;
                }
 
-               [MonoTODO]
                public virtual Type[] GetRequiredCustomModifiers () {
-                       throw new NotImplementedException ();
+                       return Type.EmptyTypes;
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public virtual object GetConstantValue () {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public virtual object GetRawConstantValue() {
                        throw new NotImplementedException ();
                }
 #endif
+
+               void _PropertyInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               void _PropertyInfo.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               void _PropertyInfo.GetTypeInfoCount (out uint pcTInfo)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               void _PropertyInfo.Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
+               {
+                       throw new NotImplementedException ();
+               }
        }
 }