in mcs/class/corlib/System.Reflection:
* MonoProperty.cs: Don't share the same field with
DeclaringType and ReflectedType.
in mcs/class/corlib/System:
* Environment.cs: Dump corlib version.
in mono/metadata:
* appdomain.c: Bump corlib version.
* object-internals.h: Add new field to MonoPropertyInfo.
* icall.c (ves_icall_get_property_info): Store the
declaring type into the new field.
Fixes#633671
* 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
* MonoProperty.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
svn path=/trunk/mcs/; revision=144448
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization
works correctly, i.e. throw the right exception, with Moonlight.
svn path=/trunk/mcs/; revision=129872
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
The optimization is to create a pair of chained delegates that duplicate the workings
on MethodBase::Invoke without all the aditional overhead and without doing two
managed/native transitions.
Simple Getter performance is up to 17x faster.
This patch reduces contention on domain and domain jit code hash locks, which
can be very hot on asp.net applications.
svn path=/trunk/mcs/; revision=128172
* Attribute.cs, MonoCustomAttrs: MS ignores the inherit param in
PropertyInfo's ICustomAttributeProvider implementation, but not
in the Attributes, so directly get the attributes from
MonoCustomAttrs instead of going throught the PropertyInfo's
ICustomAttributeProvider.
* AttributeTest.cs: Remove NotWorking as we pass those tests now.
* MonoProperty.cs: MS ignores the inherit parameter and defaults to false
for GetCustomAttributes.
[Fixes bugs #324472 and #322464]
svn path=/trunk/mcs/; revision=96632
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
* MonoProperty.cs: Invoke throws a SecurityException but GetValue must
throw TargetInvocationException with the SecurityException as an inner
exception. See CAS unit tests for System.Web.dll.
svn path=/trunk/mcs/; revision=50728
* System/Environment.cs: increased corlib version.
* System.Reflection/MonoProperty.cs: changed get_property_info so that
it only gets the values needed. Reduces the allocations needed.
svn path=/trunk/mcs/; revision=22141