From 5f5f2838b1931a2cf426b778755a417cc662b46f Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Thu, 12 Jul 2012 23:50:50 -0400 Subject: moved the http server to common, added more http handlers --- MediaBrowser.Common/Net/CollectionExtensions.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 MediaBrowser.Common/Net/CollectionExtensions.cs (limited to 'MediaBrowser.Common/Net/CollectionExtensions.cs') diff --git a/MediaBrowser.Common/Net/CollectionExtensions.cs b/MediaBrowser.Common/Net/CollectionExtensions.cs new file mode 100644 index 000000000..98d24dfc0 --- /dev/null +++ b/MediaBrowser.Common/Net/CollectionExtensions.cs @@ -0,0 +1,14 @@ +using System.Collections.Generic; +using System.Collections.Specialized; +using System.Linq; + +namespace MediaBrowser.Common.Net +{ + public static class CollectionExtensions + { + public static IDictionary> ToDictionary(this NameValueCollection source) + { + return source.AllKeys.ToDictionary>(key => key, source.GetValues); + } + } +} \ No newline at end of file -- cgit v1.2.3