Files
jellyfin-jellyfin-1/MediaBrowser.Common/Net/CollectionExtensions.cs

14 lines
443 B
C#
Raw Normal View History

2012-07-12 02:55:27 -04:00
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
namespace MediaBrowser.Common.Net
2012-07-12 02:55:27 -04: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);
}
}
}