2003-09-04 Sebastien Pouliot <spouliot@videotron.ca>
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 5 Sep 2003 03:50:51 +0000 (03:50 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 5 Sep 2003 03:50:51 +0000 (03:50 -0000)
* DimeAttachmentCollection.cs: Fixed compilation issues
* DimeReader.cs: Fixed compilation issues

svn path=/trunk/mcs/; revision=17902

mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/ChangeLog [new file with mode: 0755]
mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeAttachmentCollection.cs
mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeReader.cs

diff --git a/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/ChangeLog b/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/ChangeLog
new file mode 100755 (executable)
index 0000000..cfe39a2
--- /dev/null
@@ -0,0 +1,4 @@
+2003-09-04  Sebastien Pouliot  <spouliot@videotron.ca>
+
+       * DimeAttachmentCollection.cs: Fixed compilation issues
+       * DimeReader.cs: Fixed compilation issues
index 17e3f26e18f567d1de97bd8d2073ce920ff9b40c..7535a2c25c25e85ef85290a11cbae0d89506bb65 100644 (file)
@@ -39,50 +39,51 @@ namespace Microsoft.Web.Services.Dime {
 
                public DimeAttachment this [int key] {
                        get {
-                               return IndexOf (key);
+                               return (DimeAttachment) InnerList [key];
                        }
                }
 
                public DimeAttachment this [string key] {
                        get {
-                               return IndexOf (key);
+                               // FIXME: must iterate in collection
+                               return null;
                        }
                }
 
                public void Add (DimeAttachment attachment)
                {
-                       Add (attachment);
+                       InnerList.Add (attachment);
                }
 
                public void AddRange (ICollection collection)
                {
                        foreach (object o in collection)
-                               Add (o);
+                               InnerList.Add (o);
                }
                
                public bool Contains (string id)
                {
-                       return Contains (id);
+                       return InnerList.Contains (id);
                }
                
-               public void CopyTo (DimeAttachment[] attachements, int index)
+               public void CopyTo (DimeAttachment[] attachments, int index)
                {
-                       CopyTo (attachments, index);
+                       InnerList.CopyTo (attachments, index);
                }
 
                public int IndexOf (DimeAttachment attachment)
                {
-                       return IndexOf(attachment);
+                       return InnerList.IndexOf(attachment);
                }
 
                public int IndexOf (string id)
                {
-                       return IndexOf(id);
+                       return InnerList.IndexOf(id);
                }
 
                public void Remove (DimeAttachment attachment)
                {
-                       Remove (attachement);
+                       InnerList.Remove (attachment);
                }
        }
 }
index 96b6638678d1099be9b02279faf72fdfafe67eba..9e39d7406a3bc31fe0daa66891fe98a745add3aa 100644 (file)
@@ -41,9 +41,8 @@ namespace Microsoft.Web.Services.Dime {
                         opened = false;
                 }
 
-                public bool CanRead ()
-                {
-                        return stream.CanRead ();
+                public bool CanRead {
+                       get { return stream.CanRead; }
                 }
 
                 [MonoTODO]