diff options
author | jfrijters <jfrijters> | 2011-01-12 16:45:20 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-01-12 16:45:20 +0300 |
commit | 5a100a53059e884a16c2fd73ced0cd505d9872d4 (patch) | |
tree | 40f784b0a04eb586a51225a692304fa93a4f6d5f /reflect/Reader | |
parent | a0a7cfe8070edff4a581b81a03bd7c4eb8d4c831 (diff) |
Re-arrange Name/__Name usage to avoid redundant escaping/unescaping.
Improve support for nested types that use a namespace.
Diffstat (limited to 'reflect/Reader')
-rw-r--r-- | reflect/Reader/TypeDefImpl.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/reflect/Reader/TypeDefImpl.cs b/reflect/Reader/TypeDefImpl.cs index f3e3afa8..26d9e720 100644 --- a/reflect/Reader/TypeDefImpl.cs +++ b/reflect/Reader/TypeDefImpl.cs @@ -41,7 +41,7 @@ namespace IKVM.Reflection.Reader { this.module = module; this.index = index; - this.typeName = TypeNameParser.Escape(module.GetString(module.TypeDef.records[index].TypeName)); + this.typeName = module.GetString(module.TypeDef.records[index].TypeName); this.typeNamespace = module.GetString(module.TypeDef.records[index].TypeNamespace); } @@ -194,7 +194,7 @@ namespace IKVM.Reflection.Reader public override string __Name { - get { return TypeNameParser.Unescape(typeName); } + get { return typeName; } } public override string __Namespace @@ -204,7 +204,7 @@ namespace IKVM.Reflection.Reader public override string Name { - get { return typeName; } + get { return TypeNameParser.Escape(typeName); } } public override string Namespace |