Aqueduct.Web.CookieManager.GetCookieValues C# (CSharp) Метод

GetCookieValues() публичный статический Метод

public static GetCookieValues ( string key ) : string>.Dictionary
key string
Результат string>.Dictionary
        public static Dictionary<string, string> GetCookieValues(string key)
        {
            Dictionary<string, string> cookieValues = null;

            if (IsCookieExist(key))
            {
                cookieValues = new Dictionary<string, string>();
                NameValueCollection cookies = HttpContext.Current.Request.Cookies[key].Values;

                foreach (string cookieValue in cookies)
                    cookieValues.Add(cookieValue, cookies[cookieValue]);
            }

            return cookieValues;
        }