Author: andrews
Date: 2006-11-15 09:34:35 -0500 (Wed, 15 Nov 2006)
New Revision: 67924

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/WebHeaderCollection.cs
Log:
add stubs for new 2.0 indexers

Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2006-11-15 14:25:28 UTC (rev 
67923)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2006-11-15 14:34:35 UTC (rev 
67924)
@@ -1,3 +1,7 @@
+2006-11-15  Andrew Skiba  <[EMAIL PROTECTED]>
+
+       * WebHeaderCollection.cs: add stubs for new 2.0 properties.
+
 2006-11-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * HttpWebResponse.cs: cookies are actually added to the request

Modified: trunk/mcs/class/System/System.Net/WebHeaderCollection.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebHeaderCollection.cs    2006-11-15 
14:25:28 UTC (rev 67923)
+++ trunk/mcs/class/System/System.Net/WebHeaderCollection.cs    2006-11-15 
14:34:35 UTC (rev 67924)
@@ -272,18 +272,46 @@
                                  
                        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.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to