Esempio n. 1
0
 /// <summary>
 /// Get all values for a named parameter.
 /// </summary>
 /// <param name="key"><see cref="DreamFeatureParamAttribute"/> name.</param>
 /// <returns>Text values of parameter.</returns>
 /// <exception cref="DreamAbortException">Throws if parameter does not exist.</exception>
 public string[] GetParams(string key)
 {
     EnsureFeatureIsSet();
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     string[] values;
     if (!_pathParams.TryGetValue(key, out values) || (values == null))
     {
         values = Uri.GetParams(key);
     }
     return(values ?? new string[0]);
 }