Bug fixes.
authorBob Smith <bobsmith@mono-cvs.ximian.com>
Thu, 16 Aug 2001 14:39:49 +0000 (14:39 -0000)
committerBob Smith <bobsmith@mono-cvs.ximian.com>
Thu, 16 Aug 2001 14:39:49 +0000 (14:39 -0000)
svn path=/trunk/mcs/; revision=482

mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpCookie.cs
mcs/class/System.Web/System.Web/HttpCookieCollection.cs
mcs/class/System.Web/makefile

index f35c628b1e7fed41e916efdbb1a833fd3e553ba2..153aa95e25e40d2211a8fc1853fafd720125630a 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-16  Bob Smith  <bob@thestuff.net>
+
+         * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
+
 2001-08-09  Bob Smith  <bob@thestuff.net>
 
          * BeginEventHandler.cs: Implemented.
index 542cc5f8bce66915c644ce3cc8d45f98b2f45fcb..bc16a17cd67280c9b6a59bf958ec2d40811b90ac 100644 (file)
@@ -7,6 +7,9 @@
 // (C) Bob Smith
 //
 
+using System;
+using System.Collections.Specialized;
+
 namespace System.Web
 {
         public sealed class HttpCookie
@@ -49,12 +52,18 @@ namespace System.Web
                         }
                 }
                 public bool HasKeys
+                {
                         get
                         {
-                                return FALSE; //TODO
+                                return false; //TODO
                         }
                }
-               public string this[string key] {get; set;} //TODO: get subcookie.
+               public string this[string key]
+               {
+//TODO: get/set subcookie.
+                        get {return "";}
+                        set {}
+               }
                public string Name
                {
                         get
@@ -99,6 +108,10 @@ namespace System.Web
                                 _value = value;
                         }
                 }
-                public NameValueCollection Values {get;} //TODO
+                public NameValueCollection Values
+                {
+//TODO
+                        get {return null;}
+                }
         }
 }
index 3bd2ee7d9f4902474adb6257f9f9363ee83dd24b..b13b38d1348f4992280d248706dae4c7cd94efc7 100644 (file)
@@ -7,11 +7,14 @@
 // (C) Bob Smith
 //
 
+using System;
+using System.Collections.Specialized;
+
 namespace System.Web
 {
         public sealed class HttpCookieCollection : NameObjectCollectionBase
         {
-                public HttpCookieCollection();
+                public HttpCookieCollection() {}
                 public string[] AllKeys
                 {
                         get
@@ -23,29 +26,32 @@ namespace System.Web
                 {
                         get
                         {
-                                return this.BaseGet(index);
+                                return (HttpCookie)(this.BaseGet(index));
                         }
                 }
                 public HttpCookie this[string name]
                 {
                         get
                         {
-                                return this.BaseGet(name);
+                                return (HttpCookie)(this.BaseGet(name));
                         }
                 }
                 public void Add(HttpCookie cookie)
                 {
-                        this.BaseAdd(cookie.name, cookie);
+                        this.BaseAdd(cookie.Name, cookie);
                 }
-                public void Clear;
+                public void Clear()
                 {
-                        this.BaseClear;
+                        this.BaseClear();
                 }
                 public void CopyTo(Array dest, int index)
                 {
+                        int i;
+                        HttpCookie cookie;
                         for(i=0; i<this.Count; i++)
                         {
-                                dest[index+i]=this[i];
+                                cookie=this[i];
+                                dest.SetValue(new HttpCookie(cookie.Name, cookie.Value), index+i);
                         }
                 }
                 public string GetKey(int index)
@@ -58,7 +64,7 @@ namespace System.Web
                 }
                 public void Set(HttpCookie cookie)
                 {
-                        this.BaseSet(cookie.name, cookie);
+                        this.BaseSet(cookie.Name, cookie);
                 }
         }
 }
index 1c22fc1c542fcebd4a56a217d9184930ffa8eb66..2cab450711ec185db7b17233390ff4b245d0c02f 100644 (file)
@@ -1,5 +1,6 @@
-DIRS=System.Web.Caching
-
+DIRS=  \
+       System.Web                                      \
+       System.Web.Caching
 all:
        @echo "You must use 'make windows' or 'make unix'."
        @echo "'make unix' is broken for now."