Commit Graph
26 Commits
Author SHA1 Message Date
Zoltan Varga 80a2b9f902 2007-12-03 Zoltan Varga <[email protected]>
* MonoField.cs: Implement GetRawConstantValue ().

svn path=/trunk/mcs/; revision=90543
2007-12-03 14:00:37 +00:00
Robert Jordan c76ea13748 In .:
2007-08-23  Robert Jordan  <[email protected]>

	* corlib.dll.sources: Added MemberInfoSerializationHolder.cs.

In System.Runtime.Serialization.Formatters.Binary:
2007-08-23  Robert Jordan  <[email protected]>

	* ObjectReader.cs, ObjectReader.cs: Map between System.MonoType[] and
	MS.NET's System.RuntimeType[].
	
	* ObjectReader.cs (ReadType): When a type couldn't be found, emit
	a more useful exception.

In System.Reflection:
2007-08-23  Robert Jordan  <[email protected]>

	* MemberInfoSerializationHolder.cs: created from
	ReflectionSerializationHolder to match MS (fixes bug #80761).
	Add support for	fields, events, properties and generic methods.

	* MonoMethod.cs (GetObjectData): handle generic arguments.

	* MonoGenericMethod.cs: mark as [Serializable].

	* MonoProperty.cs (GetObjectData): implemented.

	* MonoField.cs: ditto.

	* MonoEvent.cs: ditto.


svn path=/trunk/mcs/; revision=84732
2007-08-23 18:40:17 +00:00
Jb Evain 700ce9b54d 2006-09-29 Jb Evain <[email protected]>
* MonoFieldInfo.cs: throw a FieldAccessException when setting a literal field.

svn path=/trunk/mcs/; revision=66119
2006-09-30 13:49:47 +00:00
Jb Evain 13d43755c3 2006-05-03 Jb Evain <[email protected]>
* MonoField.cs (GetValue,SetValue): throw a TargetException
	when the field is non static and the target is null.

svn path=/trunk/mcs/; revision=60208
2006-05-03 10:14:48 +00:00
Martin Baulig a3d1b38aad 2006-02-16 Martin Baulig <[email protected]>
* FieldInfo.cs (FieldInfo.Mono_GetGenericFieldDefinition): Removed.


svn path=/trunk/mcs/; revision=56907
2006-02-16 00:31:16 +00:00
Zoltan Varga 7432523f7b 2005-06-07 Zoltan Varga <[email protected]>
* *.cs: Updates for net 2.0 beta 2.

svn path=/trunk/mcs/; revision=45571
2005-06-07 12:36:45 +00:00
Zoltan Varga 6d60543e91 2005-05-13 Zoltan Varga <[email protected]>
* MonoField.cs: Applied patch from Opened by Michael Meeks ([email protected]). Improve exception message on binding failures.

svn path=/trunk/mcs/; revision=44493
2005-05-13 11:45:53 +00:00
Lluis Sanchez 16d0c2554c 2005-05-09 Lluis Sanchez Gual <[email protected]>
* MonoField.cs: Added a Clone method. This is needed for serialization.


svn path=/trunk/mcs/; revision=44266
2005-05-09 11:00:31 +00:00
Raja R Harinath e809a07446 remove svn:executable
svn path=/trunk/mcs/; revision=41039
2005-02-22 13:59:31 +00:00
Zoltan Varga 69cbca7fda 2004-09-24 Zoltan Varga <[email protected]>
* MonoField.cs: Add GetFieldOffset.

svn path=/trunk/mcs/; revision=34380
2004-09-24 19:28:20 +00:00
Zoltan Varga 782160d69f 2004-09-23 Zoltan Varga <[email protected]>
* AssemblyFlagsAttribute.cs: Add 2.0 stuff.

	* Assembly.cs: Add stubs for ReflectionOnlyLoad methods. Add [Obsolete]
	to LoadWithPartialName on 2.0.

	* AssemblyNameFlags.cs: Add new 2.0 members.

	* FieldInfo.cs MonoField.cs PropertyInfo.cs ParameterInfo.cs MonoProperty.cs: Add stubs for Optinal/RequiredCustomModifiers.

svn path=/trunk/mcs/; revision=34304
2004-09-23 19:04:13 +00:00
Martin Baulig 2fb4189935 2004-06-11 Martin Baulig <[email protected]>
* FieldInfo.cs (Mono_GetGenericFieldDefinition): New method for NET_2_0.

svn path=/trunk/mcs/; revision=29371
2004-06-11 18:47:56 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Zoltan Varga 9bae808067 2003-12-15 Zoltan Varga <[email protected]>
* MonoField.cs (SetValue): Throw an exception if the value cannot be
	converted to the field's type. Fixes #52177.

svn path=/trunk/mcs/; revision=21172
2003-12-15 14:19:43 +00:00
Martin Baulig 37e357d755 2003-10-31 Martin Baulig <[email protected]>
* MonoGenericInst.cs (MonoInflatedField): New internal class.
	(MonoGenericInst.GetFields): Override this method and inflate
	the fields.

	* MonoField.cs: Don't make this class sealed.

svn path=/trunk/mcs/; revision=19496
2003-10-31 06:02:48 +00:00
Paolo Molaro dc940fa5a4 Thu Jul 17 17:26:59 CEST 2003 Paolo Molaro <[email protected]>
* FieldInfo.cs, MonoField.cs: cleanups. Cache some info and use
	finer-grained icalls. Requires a matching runtime.

svn path=/trunk/mcs/; revision=16350
2003-07-17 15:39:01 +00:00
Rachel Hestilow 8e2be15c61 2003-01-01 Rachel Hestilow <[email protected]>
* MonoField.cs (SetValue): Fix logic typo. Check that obj is
	non-null only for the non-static case.

svn path=/trunk/mcs/; revision=10046
2003-01-01 21:26:39 +00:00
Paolo Molaro cf3b279815 Wed Sep 11 12:49:51 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs, Type.cs: implemented InvokeMember.


Wed Sep 11 12:50:54 CEST 2002 Paolo Molaro <[email protected]>

	* Binder.cs: more default binder implementation.
	* FieldInfo.cs, MonoField.cs: fixed SetValue () implementation.
	* MonoMethod.cs: use the binder in the Invoke () implementation.
	Implemented custom attributes methods and ToString for constructors.

svn path=/trunk/mcs/; revision=7355
2002-09-11 10:57:34 +00:00
Gonzalo Paniagua Javier b41bf89278 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* MonoField.cs:
	(GetValue): allow obj to be null (used for static fields).

svn path=/trunk/mcs/; revision=7142
2002-08-29 23:07:52 +00:00
Gonzalo Paniagua Javier ed5dfb871d 2002-08-22 Gonzalo Paniagua Javier <[email protected]>
* MonoField.cs: GetValue renamed to GetValueInternal. Added check for
	null.

svn path=/trunk/mcs/; revision=6901
2002-08-22 19:38:12 +00:00
Piers Haken cc63806f23 minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
svn path=/trunk/mcs/; revision=3568
2002-04-03 06:28:53 +00:00
Paolo Molaro 1dc913e9a7 Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <[email protected]>
* MonoField.cs: implement GetValue as an internalcall.
	Implemented ToString().

svn path=/trunk/mcs/; revision=2592
2002-02-22 14:11:44 +00:00
Paolo Molaro d10f5cc8b5 Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <[email protected]>
* Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,
	MonoProperty.cs, ParameterInfo.cs: Implemented custom attributes
	related methods.

svn path=/trunk/mcs/; revision=2516
2002-02-19 15:46:58 +00:00
Miguel de Icaza 233b4847ec Revert patch
svn path=/trunk/mcs/; revision=1916
2002-01-08 15:48:29 +00:00
Miguel de Icaza bd38f645f0 Compilation Patch from Matt Kimball
svn path=/trunk/mcs/; revision=1906
2002-01-08 01:49:35 +00:00
Paolo Molaro 6236225a86 Thu Dec 13 20:10:57 CET 2001 Paolo Molaro <[email protected]>
* Array.cs: implement CopyTo ().
	* Char.cs: implement ToString ().
	* Exception.cs: bugfix.
	* Int32.cs: bare-bones Parse ().
	* MonoType.cs: query the needed info with an internalcall.
	* String.cs: speedups, bugfixes, reduced copies.
	* Type.cs: added missing fields. Implemented many of the Is*
	properties. Implemented GetMethod(), GetConstructor(), GetMethods(),
	GetFields(), FindMembers(), ToString().

Thu Dec 13 20:17:08 CET 2001 Paolo Molaro <[email protected]>

	* ArrayList.cs: implemented AddRange(), CopyTo().


Thu Dec 13 20:18:05 CET 2001 Paolo Molaro <[email protected]>

	* FieldInfo.cs: implemented some Is* propeties.
	* MethodBase.cs: fixed attribute accessors.
	* MonoField.cs: runtime object to represent a field.
	* MonoMethod.cs: runtime object to represent a method.
	* AssemblyBuilder.cs: GetToken() methods to get tokens for
	strings, fields, methods...
	* ILGenerator.cs: handle tokens for methods.

Thu Dec 13 20:22:18 CET 2001 Paolo Molaro <[email protected]>

	* DllImportAttribute.cs: added.
	* MethodImplOptions.cs: removed: this is already in CompilerServices.

svn path=/trunk/mcs/; revision=1566
2001-12-13 15:57:22 +00:00