Exemple #1
0
 private void Copy(ReadOnlyUrl url)
 {
     _uriBuilder         = url._uriBuilder;
     _sharingBuilder     = true;
     _queryString        = url._queryString;
     _sharingQueryString = true;
 }
Exemple #2
0
 public void Add(QueryStringCollection collection)
 {
     if (collection != null && collection.Count > 0)
     {
         _collection.Add(collection._collection);
         _toString = null;
     }
 }
Exemple #3
0
        public void Set(QueryStringCollection collection)
        {
            if (_collection.Count > 0)
            {
                foreach (string key in collection)
                {
                    _collection.Remove(key);
                }
            }

            Add(collection);
        }
Exemple #4
0
 internal QueryString(QueryStringCollection collection)
     : base(collection)
 {
 }
Exemple #5
0
 public ReadOnlyQueryString(NameValueCollection queryString)
 {
     _collection = new QueryStringCollection(queryString);
 }
Exemple #6
0
 public ReadOnlyQueryString(string queryString)
 {
     _collection = new QueryStringCollection(queryString);
 }
Exemple #7
0
 public ReadOnlyQueryString(params string[] parameters)
 {
     _collection = new QueryStringCollection(parameters);
 }
Exemple #8
0
 internal ReadOnlyQueryString(QueryStringCollection collection)
 {
     _collection = collection;
 }
Exemple #9
0
 public QueryStringCollection(QueryStringCollection collection)
 {
     _collection = HttpUtility.ParseQueryString(string.Empty);
     Add(collection);
     _toString = _collection.ToString();
 }
Exemple #10
0
 private void CreateQueryString(QueryStringCollection queryString)
 {
     _queryString = new QueryStringCollection(queryString);
 }