Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: dictionary returns undefined

0
0
engine.Add("_GET", Get.Create(p));
 public static PropertyBag Create(HttpProcessor p)
        {
            var props = new PropertyBag();

            var uri = new Uri("htt://localhost" + p.http_url);
            var q = uri.Query;
            foreach (var qi in q.Split(new[] { '&', '?' }, StringSplitOptions.RemoveEmptyEntries))
            {
                var s = qi.Split('=');
                props.Add(s[0], s[1]);
            }

            return props;
        }

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images