Esempio n. 1
0
 public static IDictionary <string, string> ToDictionary(this IRequestCookieCollection original)
 {
     return(original.ToDictionary(i => i.Key, i => i.Value.ToString()));
 }
Esempio n. 2
0
 public static Dictionary <string, string> ToDictionary(IRequestCookieCollection requestCookies)
 {
     return(requestCookies?.ToDictionary(k => k.Key, k => requestCookies[k.Key].ToString()));
 }