Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / corlib / System.Reflection.Emit / StackBehaviour.cs
index ee9ce52d2808222de93814ae7e3b40fb2b5e580d..689197c919cba83dcb55d5a2a50417a6e5cc7112 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,9 +33,8 @@ namespace System.Reflection.Emit {
        /// <summary>
        ///  Describes how values are pushed onto or popped off a stack.
        /// </summary>
-#if NET_2_0
        [ComVisible (true)]
-#endif
+       [Serializable]
        public enum StackBehaviour {
 
                /// <summary>
@@ -147,12 +147,10 @@ namespace System.Reflection.Emit {
 
                /// <summary>
                /// </summary>
-               Varpush = 0x1B
-
-#if NET_2_0
-               ,
+               Varpush = 0x1B,
                Popref_popi_pop1 = 0x1C
-#endif
+
        }
 
 }
+#endif