Merge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git] / mcs / class / corlib / System.Reflection.Emit / OperandType.cs
index a04e983da81d63f8c0a18c7ed476f024a1824e3d..2985b1b57ee0b5679081e19791641a0e738a8e79 100644 (file)
@@ -25,6 +25,7 @@
 // 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 {
@@ -32,9 +33,8 @@ namespace System.Reflection.Emit {
        /// <summary>
        ///  Describes the operand types of MSIL instructions.
        /// </summary>
-#if NET_2_0
        [ComVisible (true)]
-#endif
+       [Serializable]
        public enum OperandType {
 
                /// <summary>
@@ -63,9 +63,7 @@ namespace System.Reflection.Emit {
 
                /// <summary>
                /// </summary>
-#if NET_2_0
                [Obsolete ("This API has been deprecated.")]
-#endif
                InlinePhi = 6,
 
                /// <summary>
@@ -115,3 +113,4 @@ namespace System.Reflection.Emit {
 
 }
 
+#endif