Mon Jul 1 18:01:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection / MonoField.cs
index 807b5cee7f50f9b990e9cd7b0907dd5b979ca6bf..1c427e141646d66539a84685f59c0466137e0edc 100755 (executable)
@@ -82,9 +82,18 @@ namespace System.Reflection {
                        return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
                }
 
-               public override object GetValue(object obj) {
-                       throw new NotImplementedException ("Field::GetValue");
+               [MethodImplAttribute(MethodImplOptions.InternalCall)]
+               public extern override object GetValue(object obj);
+
+               public override string ToString () {
+                       MonoFieldInfo info;
+                       MonoFieldInfo.get_field_info (this, out info);
+                       return String.Format ("{0} {1}", info.type, info.name);
                }
 
+               [MonoTODO]
+               public override void SetValue (object obj, object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
+               {
+               }
        }
 }