* 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
* MethodBuilder.cs (SetCustomAttribute): Handle the case when the
calling convention inside the DllImportAttribute is empty.
svn path=/trunk/mcs/; revision=45342
* ModuleBuilder.cs: Implemented DefineDocument(). Generate debug
info when saving the module.
* ILGenerator.cs: Keep marked sequence points in a list.
Added a GenerateDebugInfo method, which dumps the info collected
during code generation.
* TypeBuilder.cs:
* ConstructorBuilder.cs:
* MethodBuilder.cs: Added method for generating debug info.
* LocalBuilder.cs: Added StartOffset and EndOffset properties.
* CustomAttributeBuilder.cs: Use IsInstanceOfType instead of
IsAssignableFrom when possible.
svn path=/trunk/mcs/; revision=44983
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)
svn path=/trunk/mcs/; revision=44558
* MethodBuilder.cs (MethodBuilder.GetParameters): Throw a
NotSupportedException() until the type has been fully created.
svn path=/trunk/mcs/; revision=33201