jfrijters
f443b36919
Support ToString on a CustomAttributeData with missing type values.
2011-03-10 10:47:03 +00:00
jfrijters
290703c959
If a property or field is missing and the attribute type has a missing base type, assume that the missing member lives there.
2011-03-09 07:35:55 +00:00
jfrijters
013223a4f2
- Fixed support for missing types in generic type parameters in custom attribute values.
...
- Fixed TypeParser.GetType() not to throw MissingAssemblyException.
- Unified type name parsing again.
2011-03-09 07:11:38 +00:00
jfrijters
b56b990a64
Allow Type.FullName to be used on generic type instance that uses missing type as a type parameter.
2011-03-09 07:09:26 +00:00
jfrijters
15f93a3003
Fix. Module does not inherit members from Object.
2011-03-09 07:07:11 +00:00
jfrijters
eaa7165950
Unified type resolving for Module and ModuleRef cases and added support for resolving missing types.
2011-03-09 06:06:00 +00:00
jfrijters
18aaa2edba
Allow adding a null module ref.
2011-03-09 06:02:44 +00:00
jfrijters
1319f75273
Allow Type.GetTypeCode() to work with missing mscorlib (for primitive types).
2011-03-09 06:01:52 +00:00
jfrijters
0d481c9d54
Added API extension FieldInfo.__GetFieldOnTypeDefinition().
2011-03-09 06:00:33 +00:00
jfrijters
c28f581dc0
When importing an mscorlib type, make sure it ends up in our mscorlib.
2011-03-08 15:49:07 +00:00
jfrijters
0b7a951ed2
Added support for missing fields/properties.
2011-03-08 14:58:42 +00:00
jfrijters
70a31cdcd2
Fixed GetGenericArguments() for MissingMethod (to allow the inherited ToString to work).
2011-03-08 09:18:31 +00:00
jfrijters
20ee69de0c
Added FieldBuilder.__SetReadOnlyDataAndRVA() to define read-only initialized data.
2011-03-08 08:41:00 +00:00
jfrijters
3a47da1a45
Align initialized data arrays.
2011-03-08 08:05:09 +00:00
jfrijters
3ee54261f7
Added API extension Module.__GetReferencedTypes() to get the TypeRef table contents.
2011-03-08 07:47:45 +00:00
jfrijters
602e60e74c
Introduced base class for virtual Module classes to have common place to implement abstract Module methods that aren't supported.
2011-03-08 06:43:01 +00:00
jfrijters
1c8b1c0cd5
Added API extension __ImageBase to Module.
2011-03-08 06:14:22 +00:00
jfrijters
a86c81919a
Align managed resources on 8 bytes.
2011-03-08 06:05:56 +00:00
jfrijters
33207c51dd
Added API extensions to get and add referenced modules.
2011-03-08 05:49:01 +00:00
jfrijters
d2d79ab03c
Added support for generic missing types and methods.
2011-03-07 15:23:45 +00:00
jfrijters
9d888923ed
Changed member resolution to resolve members on generic type definition, instead of the instance and then create the corresponding member of the generic instance, this allows generic member resolution to work for missing types.
2011-03-07 14:52:24 +00:00
jfrijters
14608e9120
Fixed recent regression in Import() for nested types.
2011-03-07 14:46:29 +00:00
jfrijters
c8bd51dffb
Added API extension __GetMethodOnTypeDefinition() to easily go from MethodBase on generic type instance to the equivalent MethodBase on the generic type definition.
...
The alternative way of doing this (mb.Module.ResolveMethod(mb.MetadataToken)) doesn't work with missing members, because they don't have a metadata token.
2011-03-07 07:56:52 +00:00
jfrijters
0dc7ce26b2
Write out types in fixed arg reading/writing to allow missing types to be recognized (before calling IsEnum on them).
2011-03-07 07:21:47 +00:00
jfrijters
bf1a68af40
Added API extension __FromBlob overload to create declarative security "attribute" from blob.
2011-03-07 07:09:05 +00:00
jfrijters
93f5247219
Added support for reading declarative security that refers to missing types (and query the named arguments blob with __GetBlob() for declarative security "attributes").
2011-03-07 07:07:52 +00:00
jfrijters
68816bf709
Add support for returning pseudo-custom attributes based on missing types.
2011-03-06 08:16:41 +00:00
jfrijters
f20cd45070
Use ResolveType when importing a type, to allow a missing type to be returned.
2011-03-06 08:13:44 +00:00
jfrijters
f415781685
If mscorlib is missing, use ResolveType instead of FindType to get the "built-in" types, to get a missing type for all of them.
2011-03-06 08:10:55 +00:00
jfrijters
f5c28832c8
Removed unused methods (since earlier patch that add __SetStructLayoutAttribute to TypeBuilder).
2011-03-06 07:38:58 +00:00
jfrijters
fb2b1f96e6
Added Type.IsGenericTypeInstance to make it easier (and more efficient) to test for generic type instantiations. Note that this property can be called on missing types (it will return false), unlike both IsGenericType and IsGenericTypeDefinition.
2011-03-06 07:36:55 +00:00
jfrijters
fe0b7faf89
Added API extension __SetStructLayoutAttribute().
2011-03-06 07:25:38 +00:00
jfrijters
5f9279e69a
Bug fix. When adding an assembly ref, support names that don't have Version or PublicKeyToken set. This can happen for explicitly added references or missing assemblies.
2011-03-06 07:09:14 +00:00
jfrijters
98264ff8a7
Apparently we should emit a TypeRef for types used in DeclSecurity.
2011-03-06 07:07:17 +00:00
jfrijters
eb2156834f
Added API extension __SetModuleVersionId().
2011-03-06 07:04:47 +00:00
jfrijters
58ba26a132
Forward HasThis to underlying method for generic method wrappers.
2011-03-06 07:03:05 +00:00
jfrijters
8e5b485863
Allow type names in CA blob to resolve to missing types.
2011-03-06 07:01:25 +00:00
jfrijters
5e23dfb451
Use stable sort for DeclSecurity, MethodSemantics and GenericParamConstraint tables (if STABLE_SORT is defined).
2011-03-06 06:48:05 +00:00
jfrijters
4abfc87c83
Preserve accessor ordering.
2011-03-06 06:42:31 +00:00
jfrijters
706618ffce
Added API extension to get/set max stack size.
2011-03-06 06:41:14 +00:00
jfrijters
a1131c9fcb
Allow missing primitive types to be used in custom attribute blob writing.
2011-03-06 06:40:04 +00:00
jfrijters
c5cc90ae76
If mscorlib is a missing assembly, don't try to copy its image runtime version.
2011-03-06 06:38:44 +00:00
jfrijters
75da6c389f
Allow MakeGenericType() to be used on missing type.
2011-03-06 06:37:29 +00:00
jfrijters
b9a8c39862
Mark value type/not value type when reading type as part of generic instantiation.
2011-03-06 06:36:19 +00:00
jfrijters
c92bb4afd3
Added support for missing fields.
2011-03-03 16:06:44 +00:00
jfrijters
b74ba1487e
Allow missing types and methods to be used in emitted assembly.
2011-03-03 12:52:44 +00:00
jfrijters
5b3d64f3ee
- Fixed CustomAttributeData.__GetBlob() to work for pseudo-custom attributes.
...
- Added CustomAttributeBuilder.__FromBlob() to avoid having to use two overloads of SetCustomAttribute when dealing with both builders and blobs.
2011-03-03 12:42:57 +00:00
jfrijters
8eb53a381f
Added (disabled) code to use a stable sort for some metadata tables. When STABLE_SORT is defined, the stable sort is used for InterfaceImpl, CustomAttribute and MethodImpl and this makes roundtripping possible which is handy for debugging (by comparing ildasm output of the input and output assemblies).
2011-03-03 12:35:48 +00:00
jfrijters
084c8c0a5b
Added limited support for #- metadata stream ("uncompressed" table heap). ParamPtr table is not yet implemented.
2011-03-03 08:34:58 +00:00
jfrijters
13056a72c1
Fixed bug in __ToBuilder(). Array values should be unwrapped.
2011-03-03 08:15:34 +00:00