Merge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git] / mcs / class / corlib / System.Reflection.Emit / AssemblyBuilderAccess.cs
index 8a80a1ad7570eb11e54fd7e1a66b82355bb2022b..55cc465e04421bd331aa9fc5d4369478a097fd60 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
 using System.Runtime.InteropServices;
 
 namespace System.Reflection.Emit
 {
-#if NET_2_0
        [ComVisible (true)]
-#endif
-  [Flags]
-  public enum AssemblyBuilderAccess
-  {
-    Run = 1,
-    Save = 2,
-    RunAndSave = 3
-#if NET_2_0
-       ,
-       ReflectionOnly = 6
+       [Serializable]
+       [Flags]
+       public enum AssemblyBuilderAccess {
+               Run = 1,
+               Save = 2,
+               RunAndSave = 3,
+               ReflectionOnly = 6,
+#if NET_4_0
+               RunAndCollect = 9
 #endif
   }
 }
+#endif