Exemplo n.º 1
0
        /// <summary>
        /// Remove a parameter with a given name.
        /// </summary>
        /// <param name="key">The name of the parameter, possibly including the modifier</param>
        /// <remarks><para>If the key includes a modifier, only that parameter will be removed. If
        /// the key is just a parameter name, all parameters with that name will be removed, regardless
        /// of modifiers attached to it.</para><para>No exception is thrown when the parameters were not found and nothing was removed.</para></remarks>
        public void RemoveParameter(string key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            if (Parameter == null)
            {
                return;
            }
            Parameter.RemoveAll(ParamsExtensions.MatchParam(key));
        }
Exemplo n.º 2
0
 public IncludeCollection(List <Extension> wrapped)
 {
     Wrapped  = wrapped;
     _matcher = ParamsExtensions.MatchParam(Query.SEARCH_PARAM_INCLUDE);
 }