diff options
author | jfrijters <jfrijters> | 2011-01-12 16:31:27 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-01-12 16:31:27 +0300 |
commit | b6fa3c6c3dfad2e794a14550b30a2f09a3dc6c32 (patch) | |
tree | f450e0ce5b7fb9e4de599bc8fb1e44599772a1ba /reflect/Reader | |
parent | 48bc7ccc6c2459909dd6bc01f17b2c5d4402f6df (diff) |
Added virtual __Name and __Namespace properties to Type to allow the real (from the ECMA CLI point of view) namespace and names of types to be queried (for TypeDef and TypeBuilder only).
Diffstat (limited to 'reflect/Reader')
-rw-r--r-- | reflect/Reader/TypeDefImpl.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/reflect/Reader/TypeDefImpl.cs b/reflect/Reader/TypeDefImpl.cs index 42313b8d..f3e3afa8 100644 --- a/reflect/Reader/TypeDefImpl.cs +++ b/reflect/Reader/TypeDefImpl.cs @@ -192,6 +192,16 @@ namespace IKVM.Reflection.Reader return Empty<PropertyInfo>.Array; } + public override string __Name + { + get { return TypeNameParser.Unescape(typeName); } + } + + public override string __Namespace + { + get { return typeNamespace; } + } + public override string Name { get { return typeName; } |