Commit Graph
20 Commits
Author SHA1 Message Date
Marek Safar 16a24ef559 Fixes build 2014-02-06 22:36:50 +01:00
Rodrigo Kumpera f351a6cc82 [corlib] Harden CustomAttributeData::GetHashCode 2014-02-06 15:52:43 -05:00
Martin Baulig 9ec4d6984f Implement new .NET 4.5 Reflection APIs. 2013-03-12 18:07:53 -04:00
Marek Safar 6c06b7d204 Optmize some empty array allocations 2013-02-21 14:38:30 +01:00
Rodrigo Kumpera 2913acfc8f Lazy load custom attribute data arguments.
in mcs/class/corlib/System.Reflection:

	* CustomAttributeData.cs: This now receives only the information
	required to later load argument data. This information is stored
	in a new field that is later discarded.

in mono/mono/metadata:

	* icall-def.h: Add new icall from CustomAttributeData.

	* object-internals.h: Add new reflection.c function.

	* reflection.c (mono_reflection_get_custom_attrs_info): Don't
	init the class when retrieving custom attributes since we must
	handle broken types.

	* reflection.c (create_custom_attr_data): Don't resolve cattr
	arguments eagerly. Instead pass enough information to
	CustomAttributeData so it can later on create them.

	* reflection.c (mono_reflection_resolve_custom_attribute_data):
	new icall used to create the cattr data arguments.

	This is required to match MS behavior and fix some of the issues
	triggered by trying to compile MD.

	Fixes #630074
2010-08-11 18:34:43 -03:00
Rodrigo Kumpera cbbafe38ce 2010-02-28 Rodrigo Kumpera <[email protected]>
* CustomAttributeData.cs:
	* ExceptionHandlingClause.cs:
	* LocalVariableInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=152645
2010-03-01 00:24:12 +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
Zoltan Varga 895088cff6 2009-01-09 Zoltan Varga <[email protected]>
* CustomAttributeData.cs (ToString): Applied patch from Leszek Ciesielski
	<[email protected]>. Use DeclaringType.FullName instead of DeclaringType.Name.
	Fixes #464830.

svn path=/trunk/mcs/; revision=122907
2009-01-09 16:00:05 +00:00
Atsushi Eno 5fe6a5b42d 2007-07-04 Atsushi Enomoto <[email protected]>
* Type.cs : 2.0 TypeHandle and ContainsGenericParameters are virtual
	  (required fix for 2.0 reflection API fixes).

	* CustomAttributeNamedArgument.cs CustomAttributeTypedArgument.cs
	  CustomAttributeData.cs : implemented Equals() and GetHashCode().
	* Missing.cs : ISerializable.
	* AssemblyName.cs : ReferenceMatchesDefinition() stub.
	* Module.cs : missing method stubs with generic type/method args.
	* ExceptionHandlingClause.cs : ToString() stub.
	* MethodBase.cs TypeDelegator.cs ModuleResolveEventHandler.cs
	  TypeFilter.cs MemberFilter.cs
	  FieldInfo.cs ParameterInfo.cs MethodInfo.cs DynamicMethod.cs :
	  miscellaneous cosmetic API fixes.


svn path=/trunk/mcs/; revision=81311
2007-07-04 02:19:18 +00:00
Zoltan Varga c3476cd513 2005-11-15 Zoltan Varga <[email protected]>
* Assembly.cs AssemblyNameFlags.cs FieldInfo.cs PropertyInfo.cs 
	CustomAttributeData.cs PortableExecutableKinds.cs 
	ObfuscateAssemblyAttribute.cs Module.cs ObfuscationAttribute.cs: Net 2.0 RTM
	updates.

svn path=/trunk/mcs/; revision=53055
2005-11-15 14:06:42 +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
Martin Baulig 5b3302524b The issue is fixed.
svn path=/trunk/mcs/; revision=45652
2005-06-08 17:24:05 +00:00
Martin Baulig 2eaa24cd38 Reverted r45553 since it broke the build; see bug #75136.
svn path=/trunk/mcs/; revision=45559
2005-06-07 03:06:54 +00:00
Carlos Alberto Cortez b011be898e 2005-06-07 Carlos Alberto Cortez <[email protected]>
* CustomAttributeData.cs: Implemented.

	* CustomAttributeDataNamedArgument.cs: Implemented.

	* CustomAttrbuteDataTypedArgument.cs: Implemented.
	

svn path=/trunk/mcs/; revision=45553
2005-06-07 00:14:13 +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
Zoltan Varga 831a995417 2005-05-06 Zoltan Varga <[email protected]>
* CustomAttributeData.cs MethodBody.cs: Remove CLSCompliant (false) attributes.

svn path=/trunk/mcs/; revision=44143
2005-05-06 16:15:19 +00:00
Zoltan Varga c82d5c88d4 Revert the last change as it breaks the build.
svn path=/trunk/mcs/; revision=44135
2005-05-06 15:30:37 +00:00
Zoltan Varga 00eef5da1d 2005-05-06 Zoltan Varga <[email protected]>
* MethodBody.cs Module.cs CustomAttributeData.cs: Remove unnecessary
	CLSCompliant attributes now that generics is CLS compliant.

svn path=/trunk/mcs/; revision=44134
2005-05-06 15:05:35 +00:00
Zoltan Varga c7d6b06532 2004-12-16 Zoltan Varga <[email protected]>
* CustomAttributeData.cs MethodBody.cs: Reenable some 2.0 code now that
	the gmcs bugs blocking them are fixed.

svn path=/trunk/mcs/; revision=37852
2004-12-16 22:01:27 +00:00
Zoltan Varga 37b3f92db6 2004-09-27 Zoltan Varga <[email protected]>
* CustomAttributeData.cs CustomAttributeTypedArgument.cs
	CustomAttributeNamedArgument.cs: New files.

svn path=/trunk/mcs/; revision=34437
2004-09-27 15:32:33 +00:00