Commit Graph
39 Commits
Author SHA1 Message Date
Martin Baulig 9ec4d6984f Implement new .NET 4.5 Reflection APIs. 2013-03-12 18:07:53 -04:00
Rodrigo Kumpera 07a220c61c Mobile should not have the COM types set. 2013-03-01 18:58:35 -05:00
Marek Safar feb5080d23 Optimize parameters handling to do much less allocation 2013-02-25 14:11:04 +01:00
Marek Safar 6c06b7d204 Optmize some empty array allocations 2013-02-21 14:38:30 +01:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Marek Safar 1fff2451d1 Add explicit interface GetType implementation to avoid object::GetType become proxy. Fixes #10148 2013-02-08 18:33:36 +01:00
Sebastien Pouliot 68dc53555e Disable optimization under full AOT. Fix bug #3682 2012-11-07 11:48:23 -05:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Marek Safar 894b26feca Warnings cleanup 2010-10-15 15:20:25 +01:00
Rodrigo Kumpera b81b54daf4 2010-03-07 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Some v4 adjustments.

svn path=/trunk/mcs/; revision=153467
2010-03-11 15:00:42 +00:00
Marek Habersack 74a7a5af8a 2010-02-11 Marek Habersack <[email protected]>
* ConstructorInfo.cs, EventInfo.cs, FieldInfo.cs: fix 4.0 equality
	and inequality operators by casting the passed parameters to
	object. Failing to do so leads to infinite recursion calling the
	operator.

svn path=/trunk/mcs/; revision=151513
2010-02-11 11:51:15 +00:00
Rodrigo Kumpera f36e8da1dc 2010-02-10 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=151269
2010-02-10 22:48:12 +00:00
Marek Safar 3086e99d75 Warnings cleanup
svn path=/trunk/mcs/; revision=146142
2009-11-13 14:52:59 +00:00
Miguel de Icaza 3400094d1a System.Reflection's turn to be de-ifdefified
svn path=/trunk/mcs/; revision=145240
2009-11-03 01:20:56 +00:00
Rodrigo Kumpera d3d3ba84b9 2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
	event remove method is not visible.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* EventInfoTest.cs: Add test for private event and
	RemoveEventHandler.

svn path=/trunk/mcs/; revision=138773
2009-07-27 21:43:13 +00:00
Rodrigo Kumpera d6241c123d 2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfo (AddEventHandler): Throw TargetException if target is not cast
	compatible.

	* EventInfo (AddEventHandler): Throw InvalidOperationException if the
	event add method is not visible.

	* EventInfo (AddEventHandler): Throw TargetException if source is null
	and the event is not static.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* EventInfoTest.cs: Add test for cast incompatible type.

	* EventInfoTest.cs: Add test for private event.

	* EventInfoTest.cs: Add test for null target for non static
	event.

svn path=/trunk/mcs/; revision=138772
2009-07-27 21:42:50 +00:00
Sebastien Pouliot 6f2cceca57 2009-03-20 Sebastien Pouliot <[email protected]>
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization 
	works correctly, i.e. throw the right exception, with Moonlight.


svn path=/trunk/mcs/; revision=129872
2009-03-20 14:02:16 +00:00
Rodrigo Kumpera 2ad3203a3d 2008-03-02 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Apply similar trick to the one in MonoProperty to speed up
	AddEventHandler.

2009-03-02  Rodrigo Kumpera  <[email protected]>

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=128383
2009-03-02 21:47:45 +00:00
Paolo Molaro eeab985405 Tue Dec 12 19:45:26 CET 2006 Paolo Molaro <[email protected]>
* MonoEvent.cs: correctly obey the nonPublic flag in GetOtherMethods ().
	* EventInfo.cs: remove NotImpl exception from GetOtherMethods ().


svn path=/trunk/mcs/; revision=69425
2006-12-12 18:46:42 +00:00
Gert Driesen 25a877e9fd * AssemblyInfo.cs: Fixed AssemblyDescription to match MS.NET.
* Array.cs: Changed protected ctor to private. Fixes API compatibility
with MS.NET.
* RuntimeFieldHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeMethodHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeTypeHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* Type.cs: Added GetType method and implemented _Type interface.
Fixes API compatibility with MS.NET.
* corlib.dll.sources: Added System.Runtime.InteropServices/
TypeLibImportClassAttribute.cs.
* AssemblyBuilder.cs: Implement _AssemblyBuilder, CA fixes to correspond 
with MS.NET
* ConstructorBuilder.cs: Implement _ConstructorBuilder, CA fixes to
correspond with MS.NET
* CustomAttributeBuilder.cs: Implement _CustomAttributeBuilder, CA
fixes to correspond with MS.NET
* EnumBuilder.cs: Implement _EnumBuilder, CA fixes to correspond with MS.NET
* EventBuilder.cs: Implement _EventBuilder, CA fixes to correspond with MS.NET
* FieldBuilder.cs: Implement _FieldBuilder, CA fixes to correspond with MS.NET
* LocalBuilder.cs: Implement _LocalBuilder, CA fixes to correspond with MS.NET
* MethodBuilder.cs: Implement _MethodBuilder, CA fixes to correspond 
with MS.NET
* MethodRental.cs: CA fixes to correspond with MS.NET, implemented 
_MethodRental.
* ModuleBuilder.cs: Implement _ModuleBuilder, CA fixes to correspond 
with MS.NET
* ILGenerator.cs: Implement _ILGenerator, CA fixes to correspond with MS.NET
* ParameterBuilder.cs Implement _ParameterBuilder, CA fixes to correspond 
with MS.NET
* PropertyBuilder.cs: Implement _PropertyBuilder, CA fixes to correspond 
with MS.NET
* SignatureHelper.cs: Implement _SignatureHelper, CA fixes to correspond 
with MS.NET
* TypeBuilder.cs: Implement _TypeBuilder, CA fixes to correspond with MS.NET
* DecimalConstantAttribute.cs: Only mark ctor not CLSCompliant on 2.0
profile to match MS.NET.
* Assembly.cs: Added GetType() method in 1.1 to match MS.NET.
* ConstructorInfo.cs: Added GetType() method in 1.1 to match MS.NET, 
implemented _ConstructorInfo.
* EventInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_EventInfo.
* FieldInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_FieldInfo.
* MemberInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_MemberInfo.
* MethodBase.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_MethodBase.
* MethodInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_MethodInfo.
* PropertyInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented 
_PropertyInfo.
* TypeAttributes.cs: CustomFormatMask and CustomFormatClass should only be 
exposed in 2.0 profile.

svn path=/trunk/mcs/; revision=48073
2005-08-07 08:48:11 +00:00
Sebastien Pouliot 571bd38886 2005-06-15 Sebastien Pouliot <[email protected]>
* Assembly.cs, AssemblyName.cs, ConstructorInfo.cs, EventInfo.cs,
	FieldInfo.cs, MemberInfo.cs, MethodBase.cs, MethodInfo.cs, Module.cs,
	ParameterInfo.cs, PropertyInfo.cs: Added some missing interfaces and
	attributes that were added in 1.1 SP1 or 2.0 beta2.


svn path=/trunk/mcs/; revision=46031
2005-06-15 10:45:00 +00:00
Zoltan Varga b36fd49ce5 2005-06-09 Zoltan Varga <[email protected]>
* CustomAttributeData.cs EventInfo.cs Assembly.cs: Updates for net 2.0 beta 2.

svn path=/trunk/mcs/; revision=45692
2005-06-09 12:04:38 +00:00
Zoltan Varga fae5147e4c 2005-06-09 Zoltan Varga <[email protected]>
* *.cs: Updates for net 2.0 beta 2.

svn path=/trunk/mcs/; revision=45685
2005-06-09 10:38:09 +00:00
Zoltan Varga 601f4125e5 2005-06-06 Zoltan Varga <[email protected]>
* *.cs: Add net 2.0 ComVisibleAttribute.

svn path=/trunk/mcs/; revision=45510
2005-06-06 18:03:29 +00:00
Raja R Harinath e809a07446 remove svn:executable
svn path=/trunk/mcs/; revision=41039
2005-02-22 13:59:31 +00:00
Miguel de Icaza 852f078c27 2005-02-16 Miguel de Icaza <[email protected]>
* MonoEvent.cs: Put new methods here.

	* EventInfo.cs: Move the methods GetCustomAttributes, and
	IsDefined from EventInfo to MonoEvent.

	Remove the methods that were not supposed to be exposed: Name,
	ReflectedType, DeclaringType.

svn path=/trunk/mcs/; revision=40775
2005-02-16 21:17:58 +00:00
Marek Safar 49dcbb2f20 2005-02-10 Marek Safar <[email protected]>
* Assembly.cs,
	* ConstructorInfo.cs,
	* EventInfo.cs,
	* FieldInfo.cs,
	* MemberInfo.cs,
	* MethodBase.cs,
	* MethodInfo.cs,
	* PropertyInfo.cs: ClassInterfaceType is None.

svn path=/trunk/mcs/; revision=40373
2005-02-10 08:19:26 +00:00
Zoltan Varga dda1b58849 2004-09-23 Zoltan Varga <[email protected]>
* EventInfo.cs: Fix 2.0 build.

svn path=/trunk/mcs/; revision=34276
2004-09-23 12:10:46 +00:00
Zoltan Varga ff31bb0f42 2004-09-23 Zoltan Varga <[email protected]>
* MonoEvent.cs (MonoEventInfo): Add 'other_methods' field.

	* EventInfo.cs MonoEvent.cs: Add NET 2.0 GetOtherMethods method.

svn path=/trunk/mcs/; revision=34274
2004-09-23 11:50:20 +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
Gert Driesen 6f4501e510 * Assembly.cs: added missing ComVisible attribute on
ImageRuntimeVersion property
* ConstructorInfo.cs: added missing attributes on Invoke
* EventInfo.cs: added missing attributes
* FieldInfo.cs: added missing attributes
* MethodBase.cs: added missing attributes
* PropertyInfo.cs: added missing attributes

svn path=/trunk/mcs/; revision=28642
2004-06-01 17:48:31 +00:00
Zoltan Varga 936de0894a 2003-11-14 Zoltan Varga <[email protected]>
* AssemblyNameFlags.cs MethodAttributes.cs: Add new enumerated values
	from NET 1.1.

	* *.cs: Add missing attributes.

svn path=/trunk/mcs/; revision=19997
2003-11-14 16:20:02 +00:00
Zoltan Varga 61562c125c 2003-06-15 Zoltan Varga <[email protected]>
* EventInfo.cs: Implement IsSpecialName.

svn path=/trunk/mcs/; revision=15419
2003-06-15 15:21:15 +00:00
Gonzalo Paniagua Javier cf549ea578 2002-12-02 Gonzalo Paniagua Javier <[email protected]>
* EventInfo.cs: implemented (Add|Remove)EventHandler.

svn path=/trunk/mcs/; revision=9357
2002-12-02 20:47:54 +00:00
Paolo Molaro 12389754e8 Tue May 21 12:07:40 CEST 2002 Paolo Molaro <[email protected]>
* EventInfo.cs: more implementation.

svn path=/trunk/mcs/; revision=4813
2002-05-21 10:40:54 +00:00
Paolo Molaro 1c5c08ea87 Thu Mar 7 17:14:20 CET 2002 Paolo Molaro <[email protected]>
* EventInfo.cs: add compiler needed methods.
	* MonoMethod.cs: make ToString() return the return type name, too.

svn path=/trunk/mcs/; revision=2967
2002-03-07 12:40:45 +00:00
Paolo Molaro 32fb0da568 Added copyright notices.
svn path=/trunk/mcs/; revision=1120
2001-10-08 12:02:19 +00:00
Paolo Molaro b7556d202f Some more stubs and fixes.
svn path=/trunk/mcs/; revision=1003
2001-09-27 13:51:14 +00:00