* 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.
* MonoMethod.cs: Add new icall for ::Attributes.
* icall.c: New icall to resolve ::Attributes so it can
avoid loading the signature and work around methods with
broken signatures.
Fixes#649527
* 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
* MonoMethod.cs (MakeGenericMethod): If any of the arguments is
a non system type, inflate to a MethodOnTypeBuilderInst.
2009-12-08 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInst.cs: Add new constructor that takes a MethodInfo
as base method. Change how compiler context is calculated to take the
instantiation vector into account.
svn path=/trunk/mcs/; revision=147852
2009-12-02 Jb Evain <[email protected]>
* Environment.cs (mono_corlib_version): bump.
* Attribute.cs: when retrieving custom attributes defined
on parameters belonging to a virtual method, walk
the inheritance chain to check for parameters attributes
all the way down.
in System.Reflection:
2009-12-02 Jb Evain <[email protected]>
* MethodInfo.cs: add an internal virtual GetBaseMethod
returning the immediate predecessor in the inheritance chain.
* MonoMethod.cs: modify the get_base_definition icall to take
a boolean indicating that we want the immediate base method
or the original method definition and rename it to
get_base_method. Implement GetBaseMethod with it.
svn path=/trunk/mcs/; revision=147460
* MonoMethod.cs: Remove CAS check in MonoCMethod.Invoke (just
like it was done for MonoMethod.Invoke sister method)
svn path=/trunk/mcs/; revision=145101
* MonoMethod.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
svn path=/trunk/mcs/; revision=144306
* TypeBuilder.cs (GetEvents): Throw if not created
and not in compiler context.
* TypeBuilder.cs (GetNestedType): Don't rely on
MonoType implementation as it doesn't work if the
nested type is defined after the TypeBuilder is
created.
2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest: Test for GetNestedType.
svn path=/trunk/mcs/; revision=139136
* Test/System.Reflection/ConstructorInfoTest.cs: enable abstract class
test.
* System.Reflection/MonoMethod.cs: throw a MemberAccessException when
trying to invoke a constructor creating an instance of an abstract
class. Return null when an instance of an object was passed as a
parameter when invoking a .ctor.
Fixes bug #324185.
svn path=/trunk/mcs/; revision=114720
* MonoMethod.cs: Don't do CAS security checks in Invoke for 2.1
profile.
2008-03-31 Mark Probst <[email protected]>
* MonoType.cs: Don't do CAS security checks in CheckMethodSecurity
for 2.1 profile.
svn path=/trunk/mcs/; revision=99461
* MonoMethod.cs (InternalInvoke): Add an out 'exc' argument used to distinguish
exceptions thrown by the icall from the exceptions thrown by the wrapped method.
Fixes#373448.
svn path=/trunk/mcs/; revision=98942
* ParameterInfoTest.cs: Added test for bug #342536.
* MonoMethod.cs (MakeGenericMethod): Modified argument name to match
MS. When one of the types is null, throw ArgumentNullException instead
of ArgumentException.
* MethodInfo.cs (MakeGenericMethod): Modified argument name to match
MS.
svn path=/trunk/mcs/; revision=94641
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
* MonoMethod.cs : ToString() did not show correct return type when
it is generic.
* MethodInfoTest.cs : added ToString() test for generic return type.
svn path=/trunk/mcs/; revision=82268
* MonoMethod.cs: Use StringBuilder for the entire ToString() methods
to reduce allocations and increase performance.
svn path=/trunk/mcs/; revision=75532
* MethodBase.cs: IsGenericMethodDefinition() and IsGenericMethod()
should return false, not throw NotSupportedException. This matches MS
behaviour and introduces simplifications in subclasses.
* MonoMethod.cs: MonoCMethod: Remove redundant overrides.
svn path=/trunk/mcs/; revision=75528