2009-10-18 Sebastien Pouliot <[email protected]>
* MethodBaseTest.cs: Add new, working, test for non-generic
GetMethodFromHandle. Add test case to show generic overload
behave exactly the same when no second RuntimeMethodHandle is
provided. Remove [Category("NotWorking")] on existing test case.
In System.Reflection:
2009-10-18 Sebastien Pouliot <[email protected]>
* MethodBase.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
svn path=/trunk/mcs/; revision=144335
2008-07-04 Rodrigo Kumpera <rkumpera@n ovell.com>
* MethodBase.cs (GetMethodFromHandle): Extract an internal version
of this function that doesn't perform the generic class check.
This method is required to fix the Delegate regression that fixing
#377324 caused.
svn path=/trunk/mcs/; revision=107258
2008-06-25 Rodrigo Kumpera <rkumpera@n ovell.com>
* MethodBase.cs (GetMethodFromHandle): Check if the icall returns null
and fail. This is part of the fix for #377324.
svn path=/trunk/mcs/; revision=106609
* 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
* MethodBase.cs: added missing ComVisible attr.
* MethodInfo.cs: added a few missing methods that we implement
in derived classes.
svn path=/trunk/mcs/; revision=69429
methods that have no IL body. Part of fix for bug #78522.
* MethodBase.bs: GetMethodBody should not throw ArgumentException for a method
with no IL body. Fixes bug #78522.
svn path=/trunk/mcs/; revision=61216
* 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
Reflect latest API changes in the August CTP.
* MethodBase.cs (MethodBase.MakeGenericMethod): Removed.
* MethodInfo.cs (MethodInfo.MakeGenericMethod): Added here.
svn path=/trunk/mcs/; revision=49776
* Array.cs: Changed protected ctor to private. Fixes API compatibility
with MS.NET.
* RuntimeFieldHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeMethodHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* RuntimeTypeHandle.cs: Equals methods and GetHashCode should only
be exposed in 2.0 profile.
* Type.cs: Added GetType method and implemented _Type interface.
Fixes API compatibility with MS.NET.
* corlib.dll.sources: Added System.Runtime.InteropServices/
TypeLibImportClassAttribute.cs.
* AssemblyBuilder.cs: Implement _AssemblyBuilder, CA fixes to correspond
with MS.NET
* ConstructorBuilder.cs: Implement _ConstructorBuilder, CA fixes to
correspond with MS.NET
* CustomAttributeBuilder.cs: Implement _CustomAttributeBuilder, CA
fixes to correspond with MS.NET
* EnumBuilder.cs: Implement _EnumBuilder, CA fixes to correspond with MS.NET
* EventBuilder.cs: Implement _EventBuilder, CA fixes to correspond with MS.NET
* FieldBuilder.cs: Implement _FieldBuilder, CA fixes to correspond with MS.NET
* LocalBuilder.cs: Implement _LocalBuilder, CA fixes to correspond with MS.NET
* MethodBuilder.cs: Implement _MethodBuilder, CA fixes to correspond
with MS.NET
* MethodRental.cs: CA fixes to correspond with MS.NET, implemented
_MethodRental.
* ModuleBuilder.cs: Implement _ModuleBuilder, CA fixes to correspond
with MS.NET
* ILGenerator.cs: Implement _ILGenerator, CA fixes to correspond with MS.NET
* ParameterBuilder.cs Implement _ParameterBuilder, CA fixes to correspond
with MS.NET
* PropertyBuilder.cs: Implement _PropertyBuilder, CA fixes to correspond
with MS.NET
* SignatureHelper.cs: Implement _SignatureHelper, CA fixes to correspond
with MS.NET
* TypeBuilder.cs: Implement _TypeBuilder, CA fixes to correspond with MS.NET
* DecimalConstantAttribute.cs: Only mark ctor not CLSCompliant on 2.0
profile to match MS.NET.
* Assembly.cs: Added GetType() method in 1.1 to match MS.NET.
* ConstructorInfo.cs: Added GetType() method in 1.1 to match MS.NET,
implemented _ConstructorInfo.
* EventInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_EventInfo.
* FieldInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_FieldInfo.
* MemberInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_MemberInfo.
* MethodBase.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_MethodBase.
* MethodInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_MethodInfo.
* PropertyInfo.cs: Added GetType() method in 1.1 to match MS.NET, implemented
_PropertyInfo.
* TypeAttributes.cs: CustomFormatMask and CustomFormatClass should only be
exposed in 2.0 profile.
svn path=/trunk/mcs/; revision=48073
* 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
* 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