Merge pull request #409 from Alkarex/patch-1
[mono.git] / mcs / class / corlib / System.Reflection.Emit / PackingSize.cs
index 2b4183a97107234452ecaac9bcfc137b20c84939..08052a3386e7344b5e141c5746eaa0c0351f6af9 100644 (file)
@@ -25,6 +25,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME
 using System.Runtime.InteropServices;
 
 namespace System.Reflection.Emit {
@@ -32,13 +33,8 @@ namespace System.Reflection.Emit {
        /// <summary>
        ///  Specifies the packing size (data alignment) of a type.
        /// </summary>
-#if NET_2_0
-#else
-       [Flags]
-#endif
-#if NET_2_0
        [ComVisible (true)]
-#endif
+       [Serializable]
        public enum PackingSize {
 
                /// <summary>
@@ -66,15 +62,14 @@ namespace System.Reflection.Emit {
                /// </summary>
                Size16 = 16,
 
-#if NET_2_0
                Size32 = 32,
 
                Size64 = 64,
 
                Size128 = 128
-#endif
        }
 
 }
 
 
+#endif