add stubs for new 2.0 indexers
authorAndrew Skiba <andrews@mono-cvs.ximian.com>
Wed, 15 Nov 2006 14:34:35 +0000 (14:34 -0000)
committerAndrew Skiba <andrews@mono-cvs.ximian.com>
Wed, 15 Nov 2006 14:34:35 +0000 (14:34 -0000)
svn path=/trunk/mcs/; revision=67924

mcs/class/System/System.Net/ChangeLog
mcs/class/System/System.Net/WebHeaderCollection.cs

index 4b7d0f9bf53c339c62f07b852f928dcd90d61a8e..7e609f5e52847a027f4fc5b6793e87d997bd87e6 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-15  Andrew Skiba  <andrews@mainsoft.com>
+
+       * WebHeaderCollection.cs: add stubs for new 2.0 properties.
+
 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * HttpWebResponse.cs: cookies are actually added to the request
index 6a58fc90c6640404ad84f2e24ecd68d1f2e89b2a..01676dcad844b3ece7bd4fdc4dd6c9611b44e1e2 100644 (file)
@@ -272,18 +272,46 @@ namespace System.Net
                                  
                        return sb.Append("\r\n").ToString();
                }
-               
+
                void ISerializable.GetObjectData (SerializationInfo serializationInfo,
-                                                 StreamingContext streamingContext)
+                                                 StreamingContext streamingContext)
                {
                        int count = base.Count;
                        serializationInfo.AddValue ("count", count);
-                       for (int i = 0; i < count ; i++) {
+                       for (int i = 0; i < count; i++) {
                                serializationInfo.AddValue ("k" + i, GetKey (i));
                                serializationInfo.AddValue ("v" + i, Get (i));
                        }
                }
-               
+
+#if NET_2_0
+               [MonoTODO]
+               public string this[HttpRequestHeader hrh]
+               {
+                       get
+                       {
+                               throw new NotImplementedException ();
+                       }
+                       set
+                       {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               [MonoTODO]
+               public string this[HttpResponseHeader hrh]
+               {
+                       get
+                       {
+                               throw new NotImplementedException ();
+                       }
+                       set
+                       {
+                               throw new NotImplementedException ();
+                       }
+               }
+#endif
+
                // Internal Methods
                
                // With this we don't check for invalid characters in header. See bug #55994.