From: Marcos Henrich Date: Wed, 1 Jul 2015 20:19:36 +0000 (+0100) Subject: Ifdefed out some methods from methodbody.cs and methodbuilder.cs X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=e658c9f64a15f590a8072338a1176d4267e68a38;p=mono.git Ifdefed out some methods from methodbody.cs and methodbuilder.cs Mono now uses ExceptionHandlingClauseOptions from methodbody.cs and ExceptionHandler from methobuilder.cs. Remaining types from thoses files were ignored with ifdef. --- diff --git a/mcs/class/referencesource/mscorlib/system/reflection/emit/methodbuilder.cs b/mcs/class/referencesource/mscorlib/system/reflection/emit/methodbuilder.cs index de8cc50951e..fc8bf12976e 100644 --- a/mcs/class/referencesource/mscorlib/system/reflection/emit/methodbuilder.cs +++ b/mcs/class/referencesource/mscorlib/system/reflection/emit/methodbuilder.cs @@ -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 /// /// Describes exception handler in a method body. diff --git a/mcs/class/referencesource/mscorlib/system/reflection/methodbody.cs b/mcs/class/referencesource/mscorlib/system/reflection/methodbody.cs index 005650ac66f..428aded37a4 100644 --- a/mcs/class/referencesource/mscorlib/system/reflection/methodbody.cs +++ b/mcs/class/referencesource/mscorlib/system/reflection/methodbody.cs @@ -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 }