* System.Reflection.Emit/AssemblyBuilder.cs: Add missing GetName(bool)
* System.Threading/ThreadPool.cs: Add missing UnsafeQueueNativeOverlapped
This is not a big issue since the missing API are unusable from
application code (and obviously not needed inside the platform code).
However it makes validating the tuned assemblies easier :)
* AssemblyBuilder.cs (GetTypes): Raise ReflectionTypeLoadException
if any type was not finished.
* AssemblyBuilderTest.cs: Add test for GetTypes () and incomplete
TypeBuilders'.
Fixes#640288
* AssemblyBuilder.cs (GenericInstanceKey): Precalculate
GenericInstanceKey hash code since this can cause infinite
recursion when inflating "Foo<T> : Bar<Foo<T>>" parent.
* TypeBuilder.cs (IsSubclassOf): Don't delegate to base class
since the unmanaged information can be out of sync.
* TypeBuilder.cs (UnderlyingSystemType): Invert the test order
since IsEnum now is potentialy more expensive.
Fixes#594728.
svn path=/trunk/mcs/; revision=155053
* AssemblyBuilder.cs: Implement v4 GetType.
2010-03-25 Rodrigo Kumpera <[email protected]>
* AssemblyBuilderTest.cs: Add test for v4 GetType and
fix other test to not be broken.
svn path=/trunk/mcs/; revision=154231
* MonoType.cs: Make the GetConstructorImpl machinery available
to be used by others.
* Type.cs (MakeGenericType): Is any of the arguments is not a system
type create an instance of MonoGenericClass instead.
2009-12-12 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Change it to support a non-sre generic type
definition.
2009-12-10 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs (MakeGenericType): Accept a Type as argument.
* ConstructorOnTypeBuilderInst.cs: Change it to support an underlying
non-sre constructor.
* MethodOnTypeBuilderInst.cs: Change it to support an underlying
non-sre method.
* FieldOnTypeBuilderInst.cs: Change it to support an underlying
non-sre field.
* EventOnTypeBuilderInst.cs: Change it to support an underlying
non-sre event.
svn path=/trunk/mcs/; revision=148338
* AssemblyBuilder.cs: Add MakeGenericType method while takes care of doing
generic instance canonicalization under compiler context.
* DerivedTypes.cs: Add ArrayType::GetEffectiveRank to make it possible to
distinguish between [] and [*].
* TypeBuilder.cs: Implement MakeGenericType in managed code.
2009-12-10 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Add new register_with_runtime icall to make
sure that a managed code instantiated MGC will be returned when
the generic instantiation happens in unmanaged code.
This is a temporary workaround while Type::MakeGenericType doesn't
handle user types properly.
svn path=/trunk/mcs/; revision=148083
2009-10-24 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run
is supported (browser-side) but we still allow other values when
compiling (e.g. smcs) outside the browser (wo coreclr)
* TypeBuilder.cs (GetConstructor): Fix validations
In Test/System.Reflection.Emit:
2009-10-24 Sebastien Pouliot <[email protected]>
* TypeBuilderTest.cs: Validation test cases for GetConstructor
svn path=/trunk/mcs/; revision=144791
* AssemblyBuilder.cs: Applied patch from <[email protected]>. Save
the public key token to a field where the runtime can access it.
svn path=/trunk/mcs/; revision=137844
* AssemblyBuilder.cs: Add IsRun property that returns true if
any execute mode is enabled.
* ModuleBuilder.cs: Add set_wrappers_type icall to define which type
is to be bound to wrappers. Create a new abstract type and call it
when the assembly is build this way.
Replace explicit checks for global_type with calls to CreateGlobalType.
* TypeBuilder.cs: Internal ctor now takes an extra table_idx argument.
svn path=/trunk/mcs/; revision=137322
* AssemblyBuilder.cs (Save): throw a NotImplementedException
when asked to emit a pe32+ binary for a AMD64 or IA64
specific assembly.
svn path=/trunk/mcs/; revision=135989
* AssemblyBuilder.cs (.ctor): Error out if the not yet supported
RunAndCollect flag was given.
* AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0.
svn path=/trunk/mcs/; revision=134601
* test-695-2-lib.cs:
* test-695-3.lib.cs: Added test for bug #432423.
* AssemblyBuilder.cs: When assembly is strongnamed, then explicitly
set PublicKey flag. Do not allow AssemblyFlagsAttribute to overwrite
flags value, and ignore PublicKey flag if assembly is not strongnamed.
Fixes bug #432423.
svn path=/trunk/mcs/; revision=119742
* AssemblyBuilder.cs (AddTypeForwarder): correctly grow the
type_forwarders array, to make that work for more than one
type forwarder. Managed part of the fix for #422929.
svn path=/trunk/mcs/; revision=113102
* ILGenerator.cs, AssemblyBuilder.cs, TypeBuilder.cs:
replace usages of new Type [0] by Type.EmptyTypes.
Found with Gendarme.
svn path=/trunk/mcs/; revision=101927
string when emitting versioninfo in compiler context. Default to
neutral language in compiler context. On 1.0 profile, use 0xffff as
default value for version parts. In Version, abort on first invalid
version part and also set FileVersion string. In ProductVersion and
FileVersion, parse version string and abort on first invalid version
part.
* AssemblyBuilder.cs: Added enum that determines the type of the
native (version) resource. Added fields for holding the native
resource type and the version culture. The versioninfo_culture was
introduced to hold the original culture of the assembly, since
the AssemblyCultureAttribute should only affect the language of the
versioninfo block when not used in compiler context. Move constructin
of native version info to DefineVersionInfoResourceImpl to allow
attributes to affect the versioninfo after DefineVersionInfoResource
has been invoked. Allow ArgumentException for invalid culture string
to bubble up. In compiler context, use FileVersion as default value
for ProductionVersion.
* AssemblyBuilderTest.cs: Enabled DefineUnmanagedResource and
DefineVersionInfoResource tests for ArgumentException when native
resource is already defined. Added tests for not supported culture
in AssemblyCultureAttribute when definining versioninfo resource.
svn path=/trunk/mcs/; revision=99280
to signal usage from a compiler. On 2.0 profile, perform argument
check for access. Use AssemblyFlags passed in through AssemblyName
arguments. Modified SetCustomAttribute to only use the Assembly*
attribute for constructing the assembly name when used in compiler
context. Fixes corlib part of bug #354970.
* AppDomainTest.cs: Added DefineDynamicAssembly tests for invalid
AssemblyBuilderAccess argument. Enabled test for DefineDynamicAssembly
overload taking IEnumerable<CustomAttributeBuilder>. Fixed typo in
comments.
* AssemblyBuilderTest.cs: Enabled test for bug #354970.
svn path=/trunk/mcs/; revision=93490