2012-07-12 06:55:27 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Specialized;
|
|
|
|
using System.Linq;
|
|
|
|
|
2012-07-21 18:39:47 +00:00
|
|
|
namespace MediaBrowser.Common.Net
|
2012-07-12 06:55:27 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|