From 0a48b5e31aa712acd988626a88c52c47467945b2 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 21 Jul 2012 14:39:47 -0400 Subject: Added a BaseKernel for the UI and Server to share, and made some other minor re-organizations. --- 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