diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-21 14:39:47 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-21 14:39:47 -0400 |
| commit | 0a48b5e31aa712acd988626a88c52c47467945b2 (patch) | |
| tree | d2f9cc9bc6aacca3c1cd847bcdfaa209566b7231 /MediaBrowser.Common/Net/CollectionExtensions.cs | |
| parent | 3f557077550b79e2c209a4041a9318886b79ed14 (diff) | |
Added a BaseKernel for the UI and Server to share, and made some other minor re-organizations.
Diffstat (limited to 'MediaBrowser.Common/Net/CollectionExtensions.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/CollectionExtensions.cs | 14 |
1 files changed, 14 insertions, 0 deletions
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<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 |
