* AssemblyBuilder.cs (.ctor): Error out if the not yet supported RunAndCollect flag was given. * AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0. svn path=/trunk/mcs/; revision=134601
@@ -162,6 +162,11 @@ namespace System.Reflection.Emit
"access");
#endif
+#if NET_4_0
+ if ((access & AssemblyBuilderAccess.RunAndCollect) == AssemblyBuilderAccess.RunAndCollect)
+ throw new NotSupportedException ("RunAndCollect not yet supported.");
+#endif
+
name = n.Name;
this.access = (uint)access;
flags = (uint) n.Flags;
@@ -45,6 +45,10 @@ namespace System.Reflection.Emit
#if NET_2_0
,
ReflectionOnly = 6
+ ,
+ RunAndCollect = 9
}
@@ -1,3 +1,10 @@
+2009-05-22 Zoltan Varga <[email protected]>
+ * AssemblyBuilder.cs (.ctor): Error out if the not yet supported
+ RunAndCollect flag was given.
+ * AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0.
2009-03-20 Sebastien Pouliot <[email protected]>
* DynamicMethod.cs (Invoke): Wrap a MethodAccessException inside a