public static bool _CanConvertTo_System_ComponentModel_ExpandableObjectConverter_System_ComponentModel_ITypeDescriptorContext_System_Type( ) { //class object System.ComponentModel.ExpandableObjectConverter _System_ComponentModel_ExpandableObjectConverter = new System.ComponentModel.ExpandableObjectConverter(); //Parameters System.ComponentModel.ITypeDescriptorContext context = null; System.Type destinationType = null; //ReturnType/Value System.Boolean returnVal_Real = false; System.Boolean returnVal_Intercepted = false; //Exception System.Exception exception_Real = null; System.Exception exception_Intercepted = null; InterceptionMaintenance.disableInterception( ); try { returnVal_Real = _System_ComponentModel_ExpandableObjectConverter.CanConvertTo(context, destinationType); } catch (System.Exception e) { exception_Real = e; } InterceptionMaintenance.enableInterception( ); try { returnVal_Intercepted = _System_ComponentModel_ExpandableObjectConverter.CanConvertTo(context, destinationType); } catch (System.Exception e) { exception_Intercepted = e; } return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted)); }
public static bool _CanConvertTo_System_ComponentModel_ExpandableObjectConverter_System_ComponentModel_ITypeDescriptorContext_System_Type( ) { //class object System.ComponentModel.ExpandableObjectConverter _System_ComponentModel_ExpandableObjectConverter = new System.ComponentModel.ExpandableObjectConverter(); //Parameters System.ComponentModel.ITypeDescriptorContext context = null; System.Type destinationType = null; //ReturnType/Value System.Boolean returnVal_Real = false; System.Boolean returnVal_Intercepted = false; //Exception System.Exception exception_Real = null; System.Exception exception_Intercepted = null; InterceptionMaintenance.disableInterception( ); try { returnVal_Real = _System_ComponentModel_ExpandableObjectConverter.CanConvertTo(context,destinationType); } catch( System.Exception e ) { exception_Real = e; } InterceptionMaintenance.enableInterception( ); try { returnVal_Intercepted = _System_ComponentModel_ExpandableObjectConverter.CanConvertTo(context,destinationType); } catch( System.Exception e ) { exception_Intercepted = e; } return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) ); }