aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Net/CollectionExtensions.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-07-19 22:22:44 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-07-19 22:22:44 -0400
commit80b3ad7bd20329e6a5bbf6eeb76af62c87434a7c (patch)
tree81ab455261cf30fab4b932215211d8cd0e57547a /MediaBrowser.Net/CollectionExtensions.cs
parent6fbd5cf46407a212fadb52eee00c7ac7690430ea (diff)
Moved the http server to it's own assembly. added comments and made other minor re-organizations.
Diffstat (limited to 'MediaBrowser.Net/CollectionExtensions.cs')
-rw-r--r--MediaBrowser.Net/CollectionExtensions.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Net/CollectionExtensions.cs b/MediaBrowser.Net/CollectionExtensions.cs
new file mode 100644
index 000000000..a6b59904f
--- /dev/null
+++ b/MediaBrowser.Net/CollectionExtensions.cs
@@ -0,0 +1,14 @@
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Linq;
+
+namespace MediaBrowser.Net
+{
+ public static class CollectionExtensions
+ {
+ public static IDictionary<string, IEnumerable<string>> ToDictionary(this NameValueCollection source)
+ {
+ return source.AllKeys.ToDictionary<string, string, IEnumerable<string>>(key => key, source.GetValues);
+ }
+ }
+} \ No newline at end of file