\r
+Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <lupus@ximian.com>\r
+\r
+ * MonoField.cs: implement GetValue as an internalcall.\r
+ Implemented ToString().\r
+\r
Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <lupus@ximian.com>\r
\r
* Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,\r
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);
+ }
}
}