Ifdefed out some methods from methodbody.cs and methodbuilder.cs
authorMarcos Henrich <marcos.henrich@xamarin.com>
Wed, 1 Jul 2015 20:19:36 +0000 (21:19 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:10:24 +0000 (00:10 +0200)
Mono now uses ExceptionHandlingClauseOptions from methodbody.cs and ExceptionHandler from methobuilder.cs.
Remaining types from thoses files were ignored with ifdef.

mcs/class/referencesource/mscorlib/system/reflection/emit/methodbuilder.cs
mcs/class/referencesource/mscorlib/system/reflection/methodbody.cs

index de8cc50951e475bbac582873567fb18509e932df..fc8bf12976e02b4d9c9a2602ef9ae9ca7df1b663 100644 (file)
@@ -19,7 +19,7 @@ namespace System.Reflection.Emit
     using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Diagnostics.Contracts;
-
+#if !MONO
     [HostProtection(MayLeakOnAbort = true)]
     [ClassInterface(ClassInterfaceType.None)]
     [ComDefaultInterface(typeof(_MethodBuilder))]
@@ -1394,6 +1394,7 @@ namespace System.Reflection.Emit
 
         #endregion
     }
+#endif
 
     /// <summary>
     /// Describes exception handler in a method body.
index 005650ac66fb46f02328a6caa5572953481835e5..428aded37a4a335b38d66f3aff5e07362e945385 100644 (file)
@@ -22,7 +22,7 @@ namespace System.Reflection
         Finally = 0x2,
         Fault = 0x4,
     }
-    
+#if !MONO
     [System.Runtime.InteropServices.ComVisible(true)]
     public class ExceptionHandlingClause
     {
@@ -167,5 +167,6 @@ namespace System.Reflection
         public virtual int LocalIndex { get { return m_localIndex; } }
         #endregion
     }
+#endif
 }