X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection%2FFieldInfo.cs;h=47021a3ffef65488a8f8281550a145b9d9186b2e;hb=ac194553049b2eeb328f5fc54b708da9b95f4d88;hp=06ea3e8e70cd8c01e2d8475819928bceb9bdd9ac;hpb=07a220c61c833153fff9a93a8270428ce719d044;p=mono.git diff --git a/mcs/class/corlib/System.Reflection/FieldInfo.cs b/mcs/class/corlib/System.Reflection/FieldInfo.cs index 06ea3e8e70c..47021a3ffef 100644 --- a/mcs/class/corlib/System.Reflection/FieldInfo.cs +++ b/mcs/class/corlib/System.Reflection/FieldInfo.cs @@ -179,17 +179,15 @@ namespace System.Reflection { } [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)] @@ -247,7 +245,6 @@ namespace System.Reflection { } -#if NET_4_0 public override bool Equals (object obj) { return obj == (object) this; @@ -278,22 +275,21 @@ namespace System.Reflection { 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)