예제 #1
0
 public object this[Enum name]
 {
     get
     {
         return(CookieStateManager.GetCookieValue(name));
     }
     set
     {
         CookieStateManager.SetCookieValue(name, Convert.ToString(value));
     }
 }
예제 #2
0
        public string GetNotNullStringValue(Enum name)
        {
            string tempStr = CookieStateManager.GetCookieValue(name);

            if (tempStr == null)
            {
                tempStr = string.Empty;
            }

            return(tempStr);
        }
예제 #3
0
 public string GetStringValue(Enum name)
 {
     return(CookieStateManager.GetCookieValue(name));
 }
예제 #4
0
 public void RemoveAll(Enum name)
 {
     CookieStateManager.ClearAllCookie(name);
 }
예제 #5
0
 public void Clear()
 {
     CookieStateManager.ClearAllCookie();
 }
예제 #6
0
 public void Add(Enum name, object value)
 {
     CookieStateManager.SetCookieValue(name, Convert.ToString(value));
 }