Marek Safar
336382e2b1
[corlib] corcompare update
2014-08-25 13:12:42 +02:00
Bart Vries
3d1779302e
Implementation of System.Reflection.ParameterInfo.HasDefaultValue
2014-01-03 00:15:52 +01:00
Sebastien Pouliot
0d864b08c0
SRE.ParameterBuilder cannot be exposed in FULL_AOT_RUNTIME
2013-08-24 11:33:42 -04:00
Rodrigo Kumpera
3673d051fb
[corlib]Implement .net 4.0 ParameterInfo.
2013-08-22 16:00:14 -04:00
Rodrigo Kumpera
23ac11d001
Handle property with default values. Fix part of #13336 .
2013-07-21 18:22:57 -04:00
Marek Safar
5e1c9a8ffe
Fix indexer member formating
2013-07-20 11:15:06 +02:00
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
Rodrigo Kumpera
b96d05dac3
Kill the MOONLIGHT define in corlib.
2013-02-11 16:03:28 -05:00
Rodrigo Kumpera
2c8c93b378
Remove SRE from Full AOT builds.
2012-11-06 18:18:14 -05:00
Rodrigo Kumpera
301b6c6fd8
Remove SRE.UnmanagedMarshal dependency from System.Reflection.
...
* FieldInfo.cs:
* MonoMethod.cs:
* ParameterInfo.cs: Remove silly dep on UnmanagedMarshal to use
MarshalAsAttribute which is what we need in the end.
* icall.c:
* reflection.c: Use the custom attribute type instead of the SRE
one. This allows FULL_AOT_RUNTIME to work with stuff that uses
MarshalAs.
2012-11-05 14:16:12 -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
Rodrigo Kumpera
c719591139
2010-02-11 Rodrigo Kumpera <[email protected] >
...
* MemberInfo.cs: Add GetCustomAttributesData.
* Assembly.cs:
* MemberInfo.cs:
* Module.cs:
* MonoEvent.cs:
* MonoField.cs:
* MonoMethod.cs:
* MonoProperty.cs:
* ParameterInfo.cs: Implement GetCustomAttributesData.
2010-02-11 Rodrigo Kumpera <[email protected] >
* MonoType.cs: Implement GetCustomAttributesData.
svn path=/trunk/mcs/; revision=151559
2010-02-11 22:55:43 +00:00
Rodrigo Kumpera
39e06838e9
2010-02-05 Rodrigo Kumpera <[email protected] >
...
* MonoMethod.cs (GetParameters): Must return a copy instead of
* the interned array.
* MonoMethod.cs (Invoke): Skip array clone in GetParameters.
* MonoProperty.cs (GetIndexParameters): Properly handle
* write-only indexed properties.
Return a ParameterInfo object bound to the properly and not to
the method.
* ParameterInfo.cs: Add new constructor that copies all fields
* but Member.
* ParameterInfo.cs (MetadataToken): Properly handle tokens of
* non-method members.
svn path=/trunk/mcs/; revision=150945
2010-02-05 20:21:42 +00:00
Rodrigo Kumpera
085bc08c97
2010-01-05 Rodrigo Kumpera <[email protected] >
...
* ParameterInfo.cs (DefaultProperty): Fix small typo.
svn path=/trunk/mcs/; revision=149087
2010-01-05 22:12:42 +00:00
Rodrigo Kumpera
a43bd91ef8
2010-01-05 Rodrigo Kumpera <[email protected] >
...
* ParameterInfo.cs (DefaultProperty): Add support for DateTime defaults.
* ParameterInfo.cs: Implements RawDefaultProperty.
2010-01-05 Rodrigo Kumpera <[email protected] >
* DateTimeConstantAttribute.cs: Add internal Ticks property.
2010-01-05 Rodrigo Kumpera <[email protected] >
* DateTimeConstantAttribute.cs: Add internal Ticks property.
svn path=/trunk/mcs/; revision=149083
2010-01-05 16:44:55 +00:00
Rodrigo Kumpera
d76263e6ef
2009-12-08 Rodrigo Kumpera <[email protected] >
...
* ParameterInfo.cs: Add constructor that takes an array of ParameterInfo
objects.
2009-12-08 Rodrigo Kumpera <[email protected] >
* MethodOnTypeBuilderInst.cs: Change base_method type from MethodBuilder to
MethodInfo.
svn path=/trunk/mcs/; revision=147850
2009-12-08 14:06:38 +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
63169b2e80
2009-06-12 Zoltan Varga <[email protected] >
...
* ParameterInfo.cs (DefaultValue): Add support for decimals, their default
value is encoded using a custom attribute.
svn path=/trunk/mcs/; revision=135965
2009-06-12 00:52:37 +00:00
Gert Driesen
3fcce25f53
* corlib_test.dll.sources: Added ConstructorOnTypeBuilderInstTest.cs.
...
* ParameterInfo.cs: Name must default to null if no ParameterBuilder
is supplied.
* ModuleBuilder.cs (DefineType): Do not perform lookup of in cache if
name is null to allow correct exception to be thrown (in TypeBuilder
ctor).
* TypeBuilder: Moved name argument check to TypeBuilder ctor. Modified
ArgumentException parameter names to match MS. Removed duplicate check
for data length from DefineInitializedData. Modified check_name to
only throw when first character is null char.
* ConstructorBuilder.cs (GetParameters): Throw NotSupportedException
(2.0) or InvalidOperationException (1.0) when type is not yet created
and we're not in compiler context. Return empty array when no
parameters are defined.
(MethodHandle): Always throw NotSupportedException.
(DefineParameter): Prevent NRE when parameters is null.
(GetCustomAttributes): When not in compiler context, always throw
NotSupportedException.
* ConstructorOnTypeBuilderInst.cs: Delegate to ConstructorBuilder
where possible. Fixed ContainsGenericParameters and IsGenericMethod
to always return false. In MethodBase.Invoke, throw an
InvalidOperationException instead of NIE.
* MethodOnTypeBuilderInstTest.cs: Fixed exception message in comments.
* TypeBuilderTest.cs: Do not use ExpectedException to avoid false
positives. Added argument check tests for DefineEvent, DefineField,
DefineMethod, DefinePInvokeMethod and DefinePropety. Use
Type.EmptyTypes instead of constructing empty array.
* ConstructorBuilderTest.cs: Added Test attributes. Added tests
for DefineParameter and Invoke overloads. Added tests for
GetCustomAttributes overloads. Avoid use of ExpectedException.
* ModuleBuilderTest.cs: Added tests for DefineType name argument
checks.
* ConstructorOnTypeBuilderInstTest.cs: Added basic set of tests.
svn path=/trunk/mcs/; revision=102211
2008-04-30 15:06:14 +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
Paolo Molaro
ce39fd6eb6
Thu Dec 14 12:52:27 CET 2006 Paolo Molaro <[email protected] >
...
* MonoProperty.cs, ParameterInfo.cs, PropertyInfo.cs:
GetRequiredCustomModifiers()/GetOptionalCustomModifiers()
implementations.
svn path=/trunk/mcs/; revision=69474
2006-12-14 11:53:12 +00:00
Miguel de Icaza
e4000f01f4
Rationalize MonoTODO
...
svn path=/trunk/mcs/; revision=68713
2006-11-30 00:30:30 +00:00
Kornél Pál
63266e4a06
FieldInfo.cs: Added GetRawConstantValue (). Note that throwing a NotSupportedException is the proper implementation.; ParameterInfo.cs: Use Attributes in Is... properties on profile 2.0 that is expected by subclasses.
...
svn path=/trunk/mcs/; revision=66749
2006-10-17 15:19:11 +00:00
Zoltan Varga
a01e55c26d
2006-09-02 Zoltan Varga <[email protected] >
...
* ParameterInfo.cs MethodInfo.cs MonoMethod.cs: Applied patch from
Peter Dettman ([email protected] ). Implement ReturnParameter
property.
svn path=/trunk/mcs/; revision=64762
2006-09-02 10:22:28 +00:00
Zoltan Varga
f4b31a94cc
2006-03-09 Zoltan Varga <[email protected] >
...
* MonoMethod.cs (ReturnTypeCustomAttributes): Compute the marshalAs attribute
for the return type as well. Fixes #77668 .
svn path=/trunk/mcs/; revision=57737
2006-03-09 18:31:06 +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
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
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
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
996d5ddd6e
2004-09-28 Zoltan Varga <[email protected] >
...
* PropertyInfo.cs (OptionalCustomModifiers): Add [MonoTODO].
* PropertyInfo.cs: Add stub for GetConstantValue ().
* ParameterInfo.cs (marshalAs): Make this private.
* Module.cs (ModuleHandle): Add [CLSCompliant(false)].
* LocalVariableInfo.cs MethodBody.cs: Disable default constructor.
svn path=/trunk/mcs/; revision=34475
2004-09-28 11:07:58 +00:00
Zoltan Varga
c48bcb131d
2004-09-26 Zoltan Varga <[email protected] >
...
* ParameterInfo.cs: Add marshalAs field, add support for returning
MarshalAsAttribute.
svn path=/trunk/mcs/; revision=34412
2004-09-26 16:36:40 +00:00
Zoltan Varga
f017402d09
2004-09-25 Zoltan Varga <[email protected] >
...
* ParameterInfo.cs: Add GetPseudoCustomAttributes () method.
svn path=/trunk/mcs/; revision=34391
2004-09-25 16:35:35 +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
Zoltan Varga
f0279c8e11
2004-09-19 Zoltan Varga <[email protected] >
...
* MemberInfo.cs ParameterInfo.cs: Add MetadataToken property.
* Module.cs: Add ModuleHandle property and new icalls.
svn path=/trunk/mcs/; revision=34068
2004-09-19 14:36:11 +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
Lluis Sanchez
814743dee5
* ParameterInfo.cs: Modified constructor of ParameterInfo for
...
the return type of a method. Since parameter positions are
zero-based, the position of the return type must be is -1.
svn path=/trunk/mcs/; revision=17192
2003-08-08 16:26:18 +00:00
Lluis Sanchez
0ae97da677
* ParameterInfo.cs: Position is zero-based in ParameterInfo.
...
Set the right position value when getting from ParameterBuilder.
svn path=/trunk/mcs/; revision=16483
2003-07-21 14:10:18 +00:00
Zoltan Varga
cdc917879e
2003-01-17 Zoltan Varga <[email protected] >
...
* ParameterInfo.cs: modified constructor so it allows the
ParameterBuilder to be null and add a 'position' argument which will
be used when pb is null.
* MethodBuilder.cs ConstructorBuilder.cs: modify GetParameters() so it
returns information even when the app did not use DefineParameter() to
define the parameters.
* ConstructorBuilder.cs (ctor): allways define SpecialName attribute
for constructors as done by MS.
svn path=/trunk/mcs/; revision=10631
2003-01-17 21:20:34 +00:00
Paolo Molaro
fe58460445
Thu Dec 19 16:43:19 CET 2002 Paolo Molaro <[email protected] >
...
* MonoMethod.cs, ParameterInfo.cs: return a custom attribute
provider for the return type of a method.
svn path=/trunk/mcs/; revision=9769
2002-12-19 15:46:00 +00:00
Martin Baulig
86de22cd79
2002-05-24 Martin Baulig <[email protected] >
...
* ParameterInfo.cs: Added internal constructor.
svn path=/trunk/mcs/; revision=4901
2002-05-24 13:15:48 +00:00
Piers Haken
610d7923ac
added missing [Serializable] attribute
...
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +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
Ravi Pratap M
e8d42158da
2002-01-04 Ravi Pratap <[email protected] >
...
* Assembly.cs : Decorate missing bits with the MonoTODO
attribute.
* ConstructorInfo.cs, MonoMethod.cs, MonoProperty.cs, ParameterInfo.cs,
ReflectionTypeLoadException.cs : Ditto.
* FieldInfo.cs : Ditto.
svn path=/trunk/mcs/; revision=1833
2002-01-04 16:06:55 +00:00
Paolo Molaro
371eeef7c0
Tue Dec 18 18:46:22 CET 2001 Paolo Molaro <[email protected] >
...
* MonoMethod.cs: implemented GetParameters().
* MonoProperty.cs: PropertyInfo implementation.
* ParameterInfo.cs: implemented.
* PropertyInfo.cs: fixes.
Tue Dec 18 18:39:54 CET 2001 Paolo Molaro <[email protected] >
* Enum.cs: implemented GetValues(), GetNames(), GetName(),
IsDefined(), GetUnderlyingType().
* String.cs: fix one instance of Compare().
* Type.cs: implemented GetProperties(), GetProperty().
svn path=/trunk/mcs/; revision=1625
2001-12-18 14:05:35 +00:00
Paolo Molaro
c441fe5cc6
Wed Nov 14 16:30:27 CET 2001 Paolo Molaro <[email protected] >
...
* Linux.cs: a '/' is a valid char in a file path.
Wed Nov 14 16:31:19 CET 2001 Paolo Molaro <[email protected] >
* AppDomain.cs: rename dummy interface _AppDomain to AppDomain_Intf.
* Array.cs: fix Array.Copy.
* AssemblyLoadEventArgs.cs: rename field.
* CLSCompliantAttribute.cs: use correct name for the class.
* Char.cs: fix IsLetter.
* Console.cs, DateTime.cs, Decimal.cs, IConvertible.cs, Math.cs,
SByte.cs, UInt16.cs, UInt32.cs, UInt64.cs, UIntPtr.cs: CLSCompliant updates.
* Convert.cs: CLSCompliant updates, add ChangeType() methods.
* Delegate.cs: renamed target field to m_target.
* Enum.cs: added missing methods.
* MonoType.cs: add a constructor and some needed properties.
* Object.cs: implement GetType().
* String.cs: CLSCompliant updates. Fixes everywhere to remove the
ending 0 char.
* Type.cs: add missing methods/properties.
Wed Nov 14 16:45:49 CET 2001 Paolo Molaro <[email protected] >
* ArrayList.cs: implement ArrayListEnumerator.
* Hashtable.cs: hardcode the prime number table.
Wed Nov 14 16:47:07 CET 2001 Paolo Molaro <[email protected] >
* Calendar.cs: CLSCompliant updates.
Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <[email protected] >
* CheckPermission.cs: disable ModeAccess() code: it's wrong.
* FileStream.cs: only trow an exception if the read failed in ReadByte().
* StreamReader.cs: implement Peek and Read.
* TextWriter.cs: CLSCompliant updates.
Wed Nov 14 16:53:28 CET 2001 Paolo Molaro <[email protected] >
* Assembly.cs: implement some of the Load() methods.
* ConstructorInfo.cs: some missing stubs and fields.
* FieldInfo.cs: IsInitOnly property.
* ParameterInfo.cs: stubs for missing properties.
* ParameterModifier.cs: implemented class.
Wed Nov 14 17:01:45 CET 2001 Paolo Molaro <[email protected] >
* ConstructorBuilder.cs: added missing stubs and some implementation.
* CustomAttributeBuilder.cs: added.
* EventBuilder.cs: added.
* FieldBuilder.cs: updates.
* MethodBuilder.cs: stuff to implement P/Invoke methods.
* ModuleBuilder.cs: added GetArrayMethod() stub.
* ParameterBuilder.cs, PropertyBuilder.cs: updates.
* TypeBuilder.cs: updates and stubs.
Wed Nov 14 17:02:57 CET 2001 Paolo Molaro <[email protected] >
* CallingConvention.cs: add missing Winapi.
Wed Nov 14 17:03:30 CET 2001 Paolo Molaro <[email protected] >
* IFormatterConverter.cs, SerializationInfo.cs: CLSCompliant updates.
Wed Nov 14 17:04:30 CET 2001 Paolo Molaro <[email protected] >
* MD5CryptoServiceProvider.cs, SHA1CryptoServiceProvider.cs,
SHA256Managed.cs: CLSCompliant updates.
Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <[email protected] >
* Encoding.cs: renamed some fields.
* StringBuilder.cs: CLSCompliant updates.
Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected] >
* Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
svn path=/trunk/mcs/; revision=1351
2001-11-14 15:18:05 +00:00
Sean MacIsaac
fc1bf781fa
Added stub classes/methods needed by compiler in an attempt to get it
...
to run in Linux.
svn path=/trunk/mcs/; revision=1171
2001-10-17 03:54:01 +00:00