From baaa844efba5ae780abbb8501a58a3a245117012 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Fri, 5 Sep 2003 03:50:51 +0000 Subject: [PATCH] 2003-09-04 Sebastien Pouliot * DimeAttachmentCollection.cs: Fixed compilation issues * DimeReader.cs: Fixed compilation issues svn path=/trunk/mcs/; revision=17902 --- .../Microsoft.Web.Services.Dime/ChangeLog | 4 ++++ .../DimeAttachmentCollection.cs | 21 ++++++++++--------- .../Microsoft.Web.Services.Dime/DimeReader.cs | 5 ++--- 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100755 mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/ChangeLog 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 index 00000000000..cfe39a2eb38 --- /dev/null +++ b/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/ChangeLog @@ -0,0 +1,4 @@ +2003-09-04 Sebastien Pouliot + + * DimeAttachmentCollection.cs: Fixed compilation issues + * DimeReader.cs: Fixed compilation issues diff --git a/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeAttachmentCollection.cs b/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeAttachmentCollection.cs index 17e3f26e18f..7535a2c25c2 100644 --- a/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeAttachmentCollection.cs +++ b/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeAttachmentCollection.cs @@ -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); } } } diff --git a/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeReader.cs b/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeReader.cs index 96b6638678d..9e39d7406a3 100644 --- a/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeReader.cs +++ b/mcs/class/Microsoft.Web.Services/Microsoft.Web.Services.Dime/DimeReader.cs @@ -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] -- 2.25.1