Beispiel #1
0
        public static bool _ConvertTo_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_System_Object_System_Type( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.ComponentModel.ITypeDescriptorContext context = null;
            System.Globalization.CultureInfo             culture = null;
            System.Object _value          = null;
            System.Type   destinationType = null;

            //ReturnType/Value
            System.Object returnVal_Real        = null;
            System.Object returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_GuidConverter.ConvertTo(context, culture, _value, destinationType);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.ConvertTo(context, culture, _value, destinationType);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
Beispiel #2
0
        public static bool _CanConvertFrom_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Type( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.ComponentModel.ITypeDescriptorContext context = null;
            System.Type sourceType = 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_GuidConverter.CanConvertFrom(context, sourceType);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.CanConvertFrom(context, sourceType);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
        public static bool _ConvertTo_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_System_Object_System_Type( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters
               System.ComponentModel.ITypeDescriptorContext context = null;
               System.Globalization.CultureInfo culture = null;
               System.Object _value = null;
               System.Type destinationType = null;

               //ReturnType/Value
               System.Object returnVal_Real = null;
               System.Object returnVal_Intercepted = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              returnVal_Real = _System_ComponentModel_GuidConverter.ConvertTo(context,culture,_value,destinationType);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.ConvertTo(context,culture,_value,destinationType);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
        public static bool _ConvertToString_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Object( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.ComponentModel.ITypeDescriptorContext context = null;
            System.Object _value = null;

            //ReturnType/Value
            System.String returnVal_Real        = null;
            System.String returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_GuidConverter.ConvertToString(context, _value);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.ConvertToString(context, _value);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
Beispiel #5
0
        public static bool _CreateInstance_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Collections_IDictionary( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.ComponentModel.ITypeDescriptorContext context = null;
            System.Collections.IDictionary propertyValues        = null;

            //ReturnType/Value
            System.Object returnVal_Real        = null;
            System.Object returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_GuidConverter.CreateInstance(context, propertyValues);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.CreateInstance(context, propertyValues);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
        public static bool _ConvertFromInvariantString_System_ComponentModel_GuidConverter_System_String( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.String text = null;

            //ReturnType/Value
            System.Object returnVal_Real        = null;
            System.Object returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_GuidConverter.ConvertFromInvariantString(text);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.ConvertFromInvariantString(text);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
Beispiel #7
0
        public static bool _GetStandardValues_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.ComponentModel.ITypeDescriptorContext context = null;

            //ReturnType/Value
            System.ComponentModel.TypeConverter + StandardValuesCollection returnVal_Real        = null;
            System.ComponentModel.TypeConverter + StandardValuesCollection returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_GuidConverter.GetStandardValues(context);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.GetStandardValues(context);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
        public static bool _IsValid_System_ComponentModel_GuidConverter_System_Object( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters
            System.Object _value = 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_GuidConverter.IsValid(_value);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_GuidConverter.IsValid(_value);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
        public static bool _CanConvertFrom_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Type( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters
               System.ComponentModel.ITypeDescriptorContext context = null;
               System.Type sourceType = 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_GuidConverter.CanConvertFrom(context,sourceType);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.CanConvertFrom(context,sourceType);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
        public static bool _CreateInstance_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Collections_IDictionary( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters
               System.ComponentModel.ITypeDescriptorContext context = null;
               System.Collections.IDictionary propertyValues = null;

               //ReturnType/Value
               System.Object returnVal_Real = null;
               System.Object returnVal_Intercepted = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              returnVal_Real = _System_ComponentModel_GuidConverter.CreateInstance(context,propertyValues);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.CreateInstance(context,propertyValues);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
        public static bool _ConvertToString_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext_System_Object( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters
               System.ComponentModel.ITypeDescriptorContext context = null;
               System.Object _value = null;

               //ReturnType/Value
               System.String returnVal_Real = null;
               System.String returnVal_Intercepted = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              returnVal_Real = _System_ComponentModel_GuidConverter.ConvertToString(context,_value);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.ConvertToString(context,_value);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
        public static bool _GetStandardValues_System_ComponentModel_GuidConverter_System_ComponentModel_ITypeDescriptorContext( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters
               System.ComponentModel.ITypeDescriptorContext context = null;

               //ReturnType/Value
               System.ComponentModel.TypeConverter+StandardValuesCollection returnVal_Real = null;
               System.ComponentModel.TypeConverter+StandardValuesCollection returnVal_Intercepted = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              returnVal_Real = _System_ComponentModel_GuidConverter.GetStandardValues(context);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.GetStandardValues(context);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
        public static bool _ConvertFromInvariantString_System_ComponentModel_GuidConverter_System_String( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters
               System.String text = null;

               //ReturnType/Value
               System.Object returnVal_Real = null;
               System.Object returnVal_Intercepted = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              returnVal_Real = _System_ComponentModel_GuidConverter.ConvertFromInvariantString(text);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.ConvertFromInvariantString(text);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
        public static bool _GetStandardValuesExclusive_System_ComponentModel_GuidConverter( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters

               //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_GuidConverter.GetStandardValuesExclusive();
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              returnVal_Intercepted = _System_ComponentModel_GuidConverter.GetStandardValuesExclusive();
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Messsage == exception_Intercepted.Message ) && ( returnValue_Real == returnValue_Intercepted ) );
        }
Beispiel #15
0
        public static bool _ctor_System_ComponentModel_GuidConverter( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

            //Parameters


            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                _System_ComponentModel_GuidConverter.ctor();
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                _System_ComponentModel_GuidConverter.ctor();
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Message == exception_Intercepted.Message));
        }
        public static bool _ctor_System_ComponentModel_GuidConverter( )
        {
            //class object
            System.ComponentModel.GuidConverter _System_ComponentModel_GuidConverter = new System.ComponentModel.GuidConverter();

               //Parameters

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              _System_ComponentModel_GuidConverter.ctor();
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              _System_ComponentModel_GuidConverter.ctor();
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Message == exception_Intercepted.Message ));
        }
Beispiel #17
0
        private static void AddValueToParameters(List <object> parameters, ValueToken token, Type dataType, CultureInfo culture)
        {
            if (token.Value == "NULL")
            {
                parameters.Add(null);
            }
            else if (dataType == typeof(string))
            {
                parameters.Add(token.Value);
            }
            else if (dataType == typeof(Guid))
            {
                System.ComponentModel.GuidConverter converter = new System.ComponentModel.GuidConverter();

                parameters.Add(converter.ConvertFrom(token.Value));
            }
            else if ((dataType == typeof(byte)) ||
                     (dataType == typeof(short)) ||
                     (dataType == typeof(bool)) ||
                     (dataType == typeof(int)) ||
                     (dataType == typeof(long)) ||
                     (dataType == typeof(float)) ||
                     (dataType == typeof(double)) ||
                     (dataType == typeof(decimal)) ||
                     (dataType == typeof(sbyte)) ||
                     (dataType == typeof(ushort)) ||
                     (dataType == typeof(uint)) ||
                     (dataType == typeof(ulong)))
            {
                try
                {
                    parameters.Add(Convert.ChangeType(token.Value, dataType, culture));
                }
                catch (OverflowException)
                {
                    throw new DataGridException(FilterParser.NumberOverflowErrorText);
                }
                catch (FormatException)
                {
                    throw new DataGridException(FilterParser.InvalidNumberFormatErrorText);
                }
            }
            else if (dataType == typeof(char))
            {
                if (token.Value.Length == 1)
                {
                    parameters.Add(token.Value[0]);
                }
                else
                {
                    throw new DataGridException(string.Format(FilterParser.InvalidCharValueErrorText, token.Value));
                }
            }
            else if (dataType == typeof(DateTime))
            {
                DateTime dateTime;

                try
                {
                    if (culture == null)
                    {
                        dateTime = DateTime.Parse(token.Value);
                    }
                    else
                    {
                        dateTime = DateTime.Parse(token.Value, culture);
                    }
                }
                catch (FormatException)
                {
                    throw new DataGridException(string.Format(FilterParser.InvalidDateTimeValueErrorText, token.Value));
                }

                parameters.Add(dateTime);
            }
        }