jfrijters
d8edcb3f95
It turns out that "multi dimensional" vectors have "multi dimensional" constructors.
2010-06-30 07:17:58 +00:00
jfrijters
0399c35f8c
Re-instroduced generic type instantation for "identity" instantations of TypeBuilder types. This is required to be able to distinguish the two types in this example:
...
class Foo<T>
{
void Frob() {
Console.WriteLine(typeof(Foo<>));
Console.WriteLine(typeof(Foo<T>));
}
}
2010-06-28 12:14:24 +00:00
jfrijters
e2ff75f477
Implemented __GetDeclaredMethods() for ArrayType and MultiArrayType.
2010-06-28 07:41:51 +00:00
jfrijters
bc23b974ef
Three IsAssignableFrom fixes:
...
- non-vector arrays are not assignable to vector arrays
- value type arrays are not assignable to non-value type arrays (and v.v.)
- pointers can be boxed to ValueType as well as Object
2010-05-21 03:48:26 +00:00
jfrijters
118db6d049
Implemented custom attribute filtering at the source. Added support for custom attribute sub typing.
2010-05-20 09:25:30 +00:00
jfrijters
651f73a990
Implemented Type.IsAssignableFrom() (minus co-/contravariance).
2010-05-20 09:05:09 +00:00
jfrijters
149a55d4dd
Introduced Type.GetEnumUnderlyingTypeImpl() to avoid CheckBaked for our own usage.
2010-05-07 16:37:28 +00:00
jfrijters
10a9a48727
Removed attributes that aren't pseudo custom attributes from pseudo custom attribute list.
2010-05-07 16:35:47 +00:00
jfrijters
8e478a9f06
Added null check.
2010-05-07 14:03:40 +00:00
jfrijters
f95d73aab5
It turns out that the "identity" generic type instantation should return the type definition.
2010-05-07 13:30:04 +00:00
jfrijters
41bfeca16a
Removed support for pseudo custom attributes TypeForwardedToAttribute and DefaultParameterValueAttribute that aren't supported by .NET reflection either.
2010-05-07 04:44:11 +00:00
jfrijters
bb41551896
Constructed types (Generic types, arrays and pointers) should forward CheckBaked to element type.
2010-05-06 13:50:36 +00:00
jfrijters
222b6d7040
Removed CheckBaked() from __GetDeclaredXxx methods and moved it to .NET compatible APIs only. There is really no good reason not to allow unbaked builders to be interrogated.
2010-05-06 13:40:43 +00:00
jfrijters
48d3595082
Fixed Type.GetEnumUnderlyingType(). Only for EnumBuilder should it work on unbaked types.
2010-05-06 13:24:29 +00:00
jfrijters
68974001b1
Added support for custom modifiers in generic type instantions (in signatures).
2010-04-18 09:25:47 +00:00
jfrijters
6a1ca8dae9
Introduced Empty<T> to cache zero length arrays.
2010-04-18 08:39:20 +00:00
jfrijters
3841cc0e3f
Fixed Type.FullName. Nested types can also have a namespace (not in the C# sense, but in the CLR sense).
2010-04-02 03:50:49 +00:00
jfrijters
d1ec841c86
Fixed regression introduced with == operator in MemberInfo.
2010-02-09 14:34:05 +00:00
jfrijters
860e0a148e
Added == and != operators to MemberInfo to mask the fact that we don't implement reference identity for various members (most notably the constructor wrappers, generic wrappers and events and properties).
...
Changed Type.Equals() to avoid infinite recursion, now that we overload the == operator.
2010-02-09 07:57:49 +00:00
jfrijters
5bdad92ef3
If a generic type contains generic parameters (that haven't been bound), FullName and AssemblyQualifiedName should return null.
2010-02-09 05:42:05 +00:00
jfrijters
56843c6602
Bug fix in BindTypeParameters(). It forgot to copy subsequent args entries that weren't affected by the bind.
2010-02-09 05:20:01 +00:00
jfrijters
7568ab4c6a
FindMembers() may be called with a null filter.
2010-02-04 09:38:52 +00:00
jfrijters
0050b15595
Several IKVM.Reflection fixes related to generics.
...
- MethodImpls in generic type definitions should be resolved with typeArgs as context.
- Cleaned up member on generic type rebinding.
- Fixed __GetDeclaredProperties and __GetDeclaredEvents to rebind properly.
2010-01-27 06:12:36 +00:00
jfrijters
0b30be9d2c
Removed UTF-8 byte order marks.
2010-01-25 05:49:01 +00:00
jfrijters
198c9d70ea
New IKVM.Reflection implementation.
2010-01-25 05:29:31 +00:00