Skip to content

Commit

Permalink
Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <lupus@ximian.com>
Browse files Browse the repository at this point in the history
	* MonoField.cs: implement GetValue as an internalcall.
	Implemented ToString().

svn path=/trunk/mcs/; revision=2592
  • Loading branch information
illupus committed Feb 22, 2002
1 parent f9527db commit 1dc913e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions mcs/class/corlib/System.Reflection/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <lupus@ximian.com>

* MonoField.cs: implement GetValue as an internalcall.
Implemented ToString().

Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <lupus@ximian.com>

* Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,
Expand Down
10 changes: 7 additions & 3 deletions mcs/class/corlib/System.Reflection/MonoField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ public override object[] GetCustomAttributes( Type attributeType, bool inherit)
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);
}
}
}

0 comments on commit 1dc913e

Please sign in to comment.