/// <summary>
        /// Gets the parameter type registry for the specified command.
        /// </summary>
        /// <param name="commandText">The command text.</param>
        /// <returns>Existing or new registry</returns>
        private ParameterTypeRegistry GetParameterTypeRegistry(string commandText)
        {
            ParameterTypeRegistry registry;

            if (_registeredParameterTypes.TryGetValue(commandText, out registry))
            {
                return(registry);
            }

            registry = new ParameterTypeRegistry();
            _registeredParameterTypes.Add(commandText, registry);
            return(registry);
        }
Exemple #2
0
        /// <summary>
        /// Gets the parameter type registry for the specified command.
        /// </summary>
        /// <param name="commandText">The command text.</param>
        /// <returns>Existing or new registry</returns>
        private ParameterTypeRegistry GetParameterTypeRegistry(string commandText) {
            ParameterTypeRegistry registry;

            if(_registeredParameterTypes.TryGetValue(commandText, out registry))
                return registry;

            registry = new ParameterTypeRegistry();
            _registeredParameterTypes.Add(commandText, registry);
            return registry;
        }