* CustomAttributeBuilder.cs: Fix the calls to IsValidType, some were passing
in DeclaringType instead of PropertyType/FieldType.
* CustomAttributeType.cs (IsValidType): Implement proper checking for reference
types. Fixes#591788.
svn path=/trunk/mcs/; revision=154423
* CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for
dynamic enums to avoid crashes in the unmanaged code. Fixes#591800.
svn path=/trunk/mcs/; revision=154419
* CustomAttributeBuilder.cs (Initialize): Add more argument checking to avoid
assertions in the runtime. Fixes#574353.
svn path=/trunk/mcs/; revision=150597
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
parameters of type SAFEARRAY[VARIANT].
* reflection.c (encode_marshal_blob): Properly generate element type
(SafeArraySubType marshal attribute option).
* cominterop.cs libtest.c: Added tests for marshalling
out parameters of type SAFEARRAY[VARIANT].
* CustomAttributeBuilder.cs: Properly handle element type for safe
arrays (SafeArraySubType marshal attribute option).
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=136836
test for UnderlyingSystemType, and improved it. Improved test for
null parent.
* ConstructorOnTypeBuilderInstTest.cs: Enabled test for GetParameters.
* ConstructorBuilderTest.cs: Enabled test for GetParameters. Renamed
test for SetCustomAttribute, and added new tests.
* ModuleBuilderTest.cs: Added tests for bug #387404.
* TypeBuilder.cs: Use Assembly.FullName instead of AssemblyName.
In UnderlyingSystemType, return UnderlyingSystemType of created type
when available. For an enum, UnderlyingSystemType is the type of the
first instance field. If no instance field is available, throw an
InvalidOperationException. Retain original behavior when operating in
compiler context.
* ConstructorBuilder.cs: Moved implementation of GetParameters to
GetParametersInternal to allow it to be used internally when type is
not yet created.
* CustomAttributeBuilder.cs: Added GetParameters method that uses
GetParametersInternal on ConstructorBuilder, and use it where
necessary.
svn path=/trunk/mcs/; revision=102970
* ParameterBuilder.cs (SetCustomAttribute): Handle DefaultParameterValueAttribute as well.
* CustomAttributeBuilder.cs: Add support for decoding more types of
constructor parameters.
svn path=/trunk/mcs/; revision=53249
exception when passed a custom marshaller type that belongs to the
assembly being built. When user specifies MarshalType rather than
MarshalTypeRef, don't attempt to resolve the type.
svn path=/trunk/mcs/; revision=49263
* 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
* 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
* CustomAttributeBuilder.cs UnmanagedMarshal.cs: Allow sizeConst and
sizeParamIndex to be -1, which means they are not given.
svn path=/trunk/mcs/; revision=41315
* CustomAttributeBuilder.cs (get_umarshal): Only call the internal
LPArray creation method if sizeConst of sizeParamIndex is given.
* UnmanagedMarshal.cs: Add has_size field.
svn path=/trunk/mcs/; revision=41312
* CustomAttributeBuilder.cs (get_umarshal): Marshal sizeConst and
sizeParamIndex fields as well.
* UnmanagedMarshal.cs: Add param_num field and a new internal creation
method which sets it.
svn path=/trunk/mcs/; revision=41282
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
svn path=/trunk/mcs/; revision=33997
* CustomAttributeBuilder.cs: expose internal data for use in
reflection.
* FieldBuilder.cs, TypeBuilder.cs: special case FieldOffset and
StructLayout attributes.
svn path=/trunk/mcs/; revision=4489