* 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
* MonoMethod.cs (ReturnTypeCustomAttributes): Compute the marshalAs attribute
for the return type as well. Fixes#77668.
svn path=/trunk/mcs/; revision=57737
* MethodBase.cs (MethodBase.GetGenericMethodDefinition): Removed.
(MethodBase.Mono_IsInflatedMethod): Removed.
(MethodBase.HasGenericParameters): Removed.
* MethodInfo.cs (MethodInfo.GetGenericMethodDefinition): Moved
here from MethodBase.
* MonoMethod.cs
(MonoMethod.IsGenericMethodDefinition): This is now an icall.
(MonoMethod.IsGenericMethod): Likewise.
svn path=/trunk/mcs/; revision=56897
* MonoMethod.cs
(MonoCMethod.IsGenericMethod): Override this and return false; the
MS runtime doesn't throw an exception here.
svn path=/trunk/mcs/; revision=56855
* MonoMethod.cs
(MonoMethod.IsGenericMethod): Only return true for "real" generic
methods and not for arbitrary instantiated methods.
(MonoMethod.IsGenericMethodDefinition): Only return true for
generic method definitions, but not for instantiated generic
methods. Fixes#77466.
svn path=/trunk/mcs/; revision=56645
* MonoMethod.cs : made MakeGenericMethod() indirect icall to
MakeGenericMethod_impl() and raise an error when it returns null.
* MethodInfoTest.cs : added MakeGenericMethod test for #76575.
svn path=/trunk/mcs/; revision=53143
* MonoMethod.cs: Promote a LinkDemand (if present) to a full Demand
(i.e. stack walk) when reflection is being used to invoke a method.
svn path=/trunk/mcs/; revision=41692
* Assembly.cs: LoadFrom: Change signature to support reflection only
methods; ReflectionOnlyLoad, ReflectionOnlyLoadFrom 2.0 methods
implemented; InvalidOperationException's re-thrown by CreateInstance.
Also ReflectionOnly 2.0 property added.
* MonoMethod.cs: InvalidOperationException's are re-thrown when calling
Invoke method on reflection only assemblies.
svn path=/trunk/mcs/; revision=41142
* MethodBase.cs
(MethodBase.GetGenericParameters): Renamed to GetGenericArguments().
* MonoGenericInst.cs (MonoGenericInst.DeclaringType): Removed.
(MonoGenericInst.GetNestedTypes): Just call
`generic_type.GetNestedTypes (bf)' here.
* MonoMethod.cs (MonoMethod.ToString): If we're a generic method,
include the type arguments.
svn path=/trunk/mcs/; revision=25131
* MethodBase.cs (MethodBase.Mono_IsInflatedMethod): New public
virtual property.
(MethodBase.HasGenericParameters): Use the "official" behavior
here, ie. return false if we're not a generic method.
svn path=/trunk/mcs/; revision=24740
* MethodInfo.cs (MethodInfo.GetGenericArguments): Make this method
abstract; use an interncall in MonoMethod and a custom
implementation in MethodBuilder.
svn path=/trunk/mcs/; revision=19160
* MonoEvent.cs: implement ToString method as in MS.NET.
* MonoMethod.cs: fix some differences between mono and MS.NET
implementation of ToString.
svn path=/trunk/mcs/; revision=19139
* System/MonoCustomAttrs.cs: fixed shortcut in GetCustomAttributes.
The argument ICustomAttributeProvider can be of other types different
from Type. Handle it.
* System.Reflection/MonoMethod.cs: implemented GetBaseDefinition ().
* System.Reflection.Emit/MethodBuilder.cs: GetBaseDefinition () returns
this.
Fixes bug #37380.
svn path=/trunk/mcs/; revision=11035
* MonoMethod.cs: Added support for serialization for MonoMethod and MonoCMethod
* ReflectionSerializationHolder.cs: Support class for serialization
svn path=/trunk/mcs/; revision=11030