* MethodBuilder.cs (MakeGenericMethod): Don't rely on the runtime to
inflate a MethodBuilder. Create directly an instance of MethodOnTypeBuilderInst.
* MethodOnTypeBuilderInst.cs (MakeGenericMethod): Cleanup this method and support
inflating already inflated methods under compiler context.
svn path=/trunk/mcs/; revision=147668
2008-07-16 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInst.cs: Special case all methods
under compiler context as needed by mcs.
* MethodBuilder.cs: Change the visibility of some fields
to internal so MethodOnTypeBuilderInst can use it.
In System.Reflection:
2008-07-16 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (GetMethod): Use the new codepath for compiler
context.
* MonoGenericClass.cs: New InflateType method, used to inflate
managed types.
svn path=/trunk/mcs/; revision=108064
* MethodBuilder.cs (check_override): Added, verify if this method has explicit
override set and doesn't follow virtual settings of overriden method.
* TypeBuilder.cs (CreateType): Call MethodBuilder::check_override before
creating the type.
Fixes#361689.
svn path=/trunk/mcs/; revision=97259
* MethodBuilder.cs : implemented ContainsGenericParameters().
* GenericTypeParameterBuilder.cs : removed most of extra members
and added missing members for 2.0 API.
svn path=/trunk/mcs/; revision=89964
* TypeBuilder.cs
MethodBuilder.cs:
Tag methods and types as HasSecurity when adding a
SuppressUnmanagedCodeSecurityAttribute on them.
Makes peverify happy.
svn path=/trunk/mcs/; revision=77762
* FileStream.cs: Implement the FileOptions usage by passing all
the information to the C layer. Remove the "isAsync" argument for
MonoIO.Open, and instead pass it on the FileOptions.
* FileOptions.cs: Make it build when including WriteThrough
* MonoIO.cs: Update MonoIO.Open signature to drop the async
argument and take FileOptions instead.
2006-04-26 Miguel de Icaza <[email protected]>
* MethodBuilder.cs: better error messages when we close the
method.
svn path=/trunk/mcs/; revision=59960
* TypeBuilder.cs (TypeBuilder.DefineMethod): Also enable the
2-argument version in the `BOOTSTRAP_NET_2_0' profile.
(TypeBuilder.DefineGenericMethod): Removed.
svn path=/trunk/mcs/; revision=56898
* FieldBuilder.cs MethodBuilder.cs ConstructorBuilder.cs: Add support for
returing custom attributes in created types. MS.NET supports this by
returning non-builder objects from GetMethod/GetField etc., but we return
builder objects in this case. Fixes#76521.
svn path=/trunk/mcs/; revision=52285
* EventBuilder.cs, FieldBuilder.cs, MethodBuilder.cs, TypeBuilder.cs,
PropertyBuilder.cs: take care of the SpecialName attribute (bug #75768).
svn path=/trunk/mcs/; revision=49481
* 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
instead of ArgumentException when count is not within range of array. Do not
allow zero-length method body to be emitted when using 2.0 profile. Fixes
bug #75236.
* MethodBuilderTest.cs: Updated existing tests to no longer define zero-length
method body. Added tests for bug #75236.
svn path=/trunk/mcs/; revision=46376
to match MS.NET (1.x and 2.x). Fixes regression introduce in r45750.
* MethodBuilder.cs: MethodBuilder.MethodHandle should throw
NotSupportedException to match MS.NET (1.x and 2.x). Fixes regression
introduced in r45750.
* MethodBuilderTest.cs: Enabled test for MethodHandle again after fixing
regression, and added additional test. Added Test attributes to tests.
* FieldBuilderTest.cs: Enabled tests for FieldHandle again after fixing
regression.
* ConstructorBuilderTest.cs: MethodHandle should not throw
NotSupportedException.
svn path=/trunk/mcs/; revision=45816