Esempio n. 1
0
        static ConversionExtensions()
        {
            var intConverter    = new GenericListTypeConverter <int>();
            var decConverter    = new GenericListTypeConverter <decimal>();
            var stringConverter = new GenericListTypeConverter <string>();

            s_customTypeConverters = new Dictionary <Type, TypeConverter>();
            s_customTypeConverters.Add(typeof(List <int>), intConverter);
            s_customTypeConverters.Add(typeof(IList <int>), intConverter);
            s_customTypeConverters.Add(typeof(List <decimal>), decConverter);
            s_customTypeConverters.Add(typeof(IList <decimal>), decConverter);
            s_customTypeConverters.Add(typeof(List <string>), stringConverter);
            s_customTypeConverters.Add(typeof(IList <string>), stringConverter);
        }
Esempio n. 2
0
        static ConversionExtensions()
        {
            var intConverter            = new GenericListTypeConverter <int>();
            var decConverter            = new GenericListTypeConverter <decimal>();
            var stringConverter         = new GenericListTypeConverter <string>();
            var soListConverter         = new ShippingOptionListTypeConverter();
            var bundleDataListConverter = new ProductBundleDataListTypeConverter();

            s_customTypeConverters = new Dictionary <Type, TypeConverter>();
            s_customTypeConverters.Add(typeof(List <int>), intConverter);
            s_customTypeConverters.Add(typeof(IList <int>), intConverter);
            s_customTypeConverters.Add(typeof(List <decimal>), decConverter);
            s_customTypeConverters.Add(typeof(IList <decimal>), decConverter);
            s_customTypeConverters.Add(typeof(List <string>), stringConverter);
            s_customTypeConverters.Add(typeof(IList <string>), stringConverter);
            s_customTypeConverters.Add(typeof(ShippingOption), new ShippingOptionTypeConverter());
            s_customTypeConverters.Add(typeof(List <ShippingOption>), soListConverter);
            s_customTypeConverters.Add(typeof(IList <ShippingOption>), soListConverter);
            s_customTypeConverters.Add(typeof(List <ProductBundleItemOrderData>), bundleDataListConverter);
            s_customTypeConverters.Add(typeof(IList <ProductBundleItemOrderData>), bundleDataListConverter);
        }