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/Type.cs | |
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/Type.cs')
-rw-r--r-- | reflect/Type.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/reflect/Type.cs b/reflect/Type.cs index 43ed271e..9f8c68ec 100644 --- a/reflect/Type.cs +++ b/reflect/Type.cs @@ -1,5 +1,5 @@ /* - Copyright (C) 2009-2010 Jeroen Frijters + Copyright (C) 2009-2011 Jeroen Frijters This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -185,6 +185,16 @@ namespace IKVM.Reflection get { return null; } } + public virtual string __Name + { + get { throw new InvalidOperationException(); } + } + + public virtual string __Namespace + { + get { throw new InvalidOperationException(); } + } + public override string Name { get |