+Thu Dec 14 12:52:27 CET 2006 Paolo Molaro <lupus@ximian.com>
+
+ * MonoProperty.cs, ParameterInfo.cs, PropertyInfo.cs:
+ GetRequiredCustomModifiers()/GetOptionalCustomModifiers()
+ implementations.
+
Tue Dec 12 20:35:10 CET 2006 Paolo Molaro <lupus@ximian.com>
* MethodBase.cs: added missing ComVisible attr.
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal static extern void get_property_info (MonoProperty prop, out MonoPropertyInfo info,
PInfo req_info);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ internal static extern Type[] GetTypeModifiers (MonoProperty prop, bool optional);
+
}
[Flags]
public override string ToString () {
return PropertyType.ToString () + " " + Name;
}
+
+#if NET_2_0 || BOOTSTRAP_NET_2_0
+
+ public override Type[] GetOptionalCustomModifiers () {
+ Type[] types = MonoPropertyInfo.GetTypeModifiers (this, true);
+ if (types == null)
+ return Type.EmptyTypes;
+ return types;
+ }
+
+ public override Type[] GetRequiredCustomModifiers () {
+ Type[] types = MonoPropertyInfo.GetTypeModifiers (this, false);
+ if (types == null)
+ return Type.EmptyTypes;
+ return types;
+ }
+#endif
+
}
}
}
}
- [MonoTODO("Not implemented")]
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ extern Type[] GetTypeModifiers (bool optional);
+
public virtual Type[] GetOptionalCustomModifiers () {
- throw new NotImplementedException ();
+ Type[] types = GetTypeModifiers (true);
+ if (types == null)
+ return Type.EmptyTypes;
+ return types;
}
- [MonoTODO("Not implemented")]
public virtual Type[] GetRequiredCustomModifiers () {
- throw new NotImplementedException ();
+ Type[] types = GetTypeModifiers (false);
+ if (types == null)
+ return Type.EmptyTypes;
+ return types;
}
[MonoTODO]
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
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
- [MonoTODO("Not implemented")]
+
public virtual Type[] GetOptionalCustomModifiers () {
- throw new NotImplementedException ();
+ return Type.EmptyTypes;
}
- [MonoTODO("Not implemented")]
public virtual Type[] GetRequiredCustomModifiers () {
- throw new NotImplementedException ();
+ return Type.EmptyTypes;
}
[MonoTODO("Not implemented")]