public static void Deserialize(string value, int startIndex, IDictionary<string, string> properties)
        {
            if (value.Length < startIndex)
            {
                return;
            }

            var parser = new UrlEncodedDictionarySerializer(properties, value, startIndex);
            parser.Deserialize();
        }
Esempio n. 2
0
        public static void Deserialize(string value, int startIndex, IDictionary <string, string> properties)
        {
            if (value.Length < startIndex)
            {
                return;
            }

            var parser = new UrlEncodedDictionarySerializer(properties, value, startIndex);

            parser.Deserialize();
        }
Esempio n. 3
0
        /// <summary>
        /// Deserialize the string of properties to a dictionary.
        /// </summary>
        /// <param name="value">Value to deserialize.</param>
        /// <param name="startIndex">Index in the value to deserialize from.</param>
        /// <param name="properties">The output dictionary.</param>
        /// <returns>Deserialized dictionary of properties.</returns>
        public static void Deserialize(string value, int startIndex, IDictionary <string, string> properties)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value), "The value parameter cannot be null.");
            }

            if (value.Length < startIndex)
            {
                return;
            }

            var parser = new UrlEncodedDictionarySerializer(properties, value, startIndex);

            parser.Deserialize();
        }