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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2009-07-31 04:10:32 +0400
committerRodrigo Kumpera <kumpera@gmail.com>2009-07-31 04:10:32 +0400
commitb7758f888aec7d8589f59f7a6bf58075402df21e (patch)
tree940d9e631b6af8b3bda235b89cf1ad1ff88929cd /mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
parent04e8f61052db99ab3016114353d78fb3847eabcc (diff)
2009-07-30 Rodrigo Kumpera <rkumpera@novell.com>
* TypeBuilder.cs (GetNestedTypes): Throw if not created and not in compiler context. svn path=/trunk/mcs/; revision=139137
Diffstat (limited to 'mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs')
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs b/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
index 8c97e89f651..7aca60c6c2a 100644
--- a/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
@@ -1284,6 +1284,9 @@ namespace System.Reflection.Emit
public override Type[] GetNestedTypes (BindingFlags bindingAttr)
{
+ if (!is_created && !IsCompilerContext)
+ throw new NotSupportedException ();
+
bool match;
ArrayList result = new ArrayList ();