[ComDefaultInterfaceAttribute (typeof (_FieldInfo))]
[Serializable]
[ClassInterface(ClassInterfaceType.None)]
+#if MOBILE
+ public abstract class FieldInfo : MemberInfo {
+#else
public abstract class FieldInfo : MemberInfo, _FieldInfo {
-
+#endif
public abstract FieldAttributes Attributes {get;}
public abstract RuntimeFieldHandle FieldHandle {get;}
}
[CLSCompliant(false)]
- [MonoTODO("Not implemented")]
public virtual object GetValueDirect (TypedReference obj)
{
- throw new NotImplementedException ();
+ throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS"));
}
[CLSCompliant(false)]
- [MonoTODO("Not implemented")]
public virtual void SetValueDirect (TypedReference obj, object value)
{
- throw new NotImplementedException ();
+ throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS"));
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
}
-#if NET_4_0
public override bool Equals (object obj)
{
return obj == (object) this;
public virtual bool IsSecurityCritical {
get {
- throw new NotImplementedException ();
+ throw new NotSupportedException ();
}
}
public virtual bool IsSecuritySafeCritical {
get {
- throw new NotImplementedException ();
+ throw new NotSupportedException ();
}
}
public virtual bool IsSecurityTransparent {
get {
- throw new NotImplementedException ();
+ throw new NotSupportedException ();
}
}
-#endif
+
+#if !MOBILE
void _FieldInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
{
throw new NotImplementedException ();
{
throw new NotImplementedException ();
}
+#endif
}
}