add realm from HttpListener
[mono.git] / mcs / class / System / System.Net.Mail / AttachmentCollection.cs
index df770d24867b0f4b623a9dbdc93371fcd05a8cc1..24e11430adae18b103f673a92b40e8ed596c525e 100644 (file)
@@ -35,18 +35,37 @@ using System.Collections.ObjectModel;
 using System.Collections.Generic;
 
 namespace System.Net.Mail {
-       public class AttachmentCollection : Collection<Attachment>, IDisposable
+       public sealed class AttachmentCollection : Collection<Attachment>, IDisposable
        {
                internal AttachmentCollection ()
                {
                }
                
-               [MonoTODO]
-               public virtual void Dispose ()
+               public void Dispose ()
                {
                        for (int i = 0; i < Count; i += 1)
                                this [i].Dispose ();
                }
+
+               protected override void ClearItems ()
+               {
+                       base.ClearItems ();
+               }
+
+               protected override void InsertItem (int index, Attachment item)
+               {
+                       base.InsertItem (index, item);
+               }
+
+               protected override void RemoveItem (int index)
+               {
+                       base.RemoveItem (index);
+               }
+
+               protected override void SetItem (int index, Attachment item)
+               {
+                       base.SetItem (index, item);
+               }
        }
 }