mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
14 lines
447 B
C#
14 lines
447 B
C#
|
|
using System.Collections.Generic;
|
||
|
|
using System.Collections.Specialized;
|
||
|
|
using System.Linq;
|
||
|
|
|
||
|
|
namespace MediaBrowser.Controller.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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|