Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-01-12 16:31:27 +0300
committerjfrijters <jfrijters>2011-01-12 16:31:27 +0300
commitb6fa3c6c3dfad2e794a14550b30a2f09a3dc6c32 (patch)
treef450e0ce5b7fb9e4de599bc8fb1e44599772a1ba /reflect/Type.cs
parent48bc7ccc6c2459909dd6bc01f17b2c5d4402f6df (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.cs12
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