Пример #1
0
            internal static int RegisterSerializers <T>()
            {
                var i = 0;

                i += Register <T, JsonTypeSerializer>();
                if (jsonSerializer.GetParseFn <T>() != null)
                {
                    i++;
                }
                if (jsonSerializer.GetWriteFn <T>() != null)
                {
                    i++;
                }
                if (jsonReader.GetParseFn <T>() != null)
                {
                    i++;
                }
                if (jsonWriter.GetWriteFn <T>() != null)
                {
                    i++;
                }

                i += Register <T, JsvTypeSerializer>();
                if (jsvSerializer.GetParseFn <T>() != null)
                {
                    i++;
                }
                if (jsvSerializer.GetWriteFn <T>() != null)
                {
                    i++;
                }
                if (jsvReader.GetParseFn <T>() != null)
                {
                    i++;
                }
                if (jsvWriter.GetWriteFn <T>() != null)
                {
                    i++;
                }


                //RegisterCsvSerializer<T>();
                RegisterQueryStringWriter();
                return(i);
            }