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