Просмотр исходного кода

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.

svn path=/trunk/mcs/; revision=134601
Zoltan Varga 16 лет назад
Родитель
Сommit
32ae6cc661

+ 5 - 0
mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs

@@ -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;

+ 4 - 0
mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs

@@ -45,6 +45,10 @@ namespace System.Reflection.Emit
 #if NET_2_0
 	,
 	ReflectionOnly = 6
+#endif
+#if NET_4_0
+	,
+	RunAndCollect = 9
 #endif
   }
 }

+ 7 - 0
mcs/class/corlib/System.Reflection.Emit/ChangeLog

@@ -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