Beispiel #1
0
 public void Union(RequestParameters p)
 {
     IEnumerator enumerator = null;
     try
     {
         enumerator = p.Keys.GetEnumerator();
         while (enumerator.MoveNext())
         {
             string str = enumerator.Current.ToString();
             this[str] = p[str];
         }
     }
     finally
     {
         if (enumerator is IDisposable)
         {
             ((IDisposable)enumerator).Dispose();
         }
     }
 }
Beispiel #2
0
 public URL(string url)
 {
     if (url == null)
     {
         url = string.Empty;
     }
     int index = url.IndexOf('?');
     if (index >= 0)
     {
         Host = url.Substring(0, index);
         Parameters = new RequestParameters(url.Substring(index + 1));
     }
     else
     {
         Host = url;
         Parameters = new RequestParameters();
     }
 }