add realm from HttpListener
[mono.git] / mcs / class / System / System.Net.Mail / AttachmentCollection.cs
index 55cf7dd55049827dd6dc1cdfd4e7675b749f5108..24e11430adae18b103f673a92b40e8ed596c525e 100644 (file)
 #if NET_2_0
 
 using System;
-using System.Collections;
+using System.Collections.ObjectModel;
 using System.Collections.Generic;
 
 namespace System.Net.Mail {
-       [CLSCompliant (false)]
-       public class AttachmentCollection : List<Attachment>, IDisposable, ICollection, IEnumerable, IList, ICollection<Attachment>, IEnumerable<Attachment>, IList<Attachment>
+       public sealed class AttachmentCollection : Collection<Attachment>, IDisposable
        {
-               [MonoTODO]
+               internal AttachmentCollection ()
+               {
+               }
+               
                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);
+               }
        }
 }