* MailAddress.cs: Throw ArgumentNullException if address is null.
[mono.git] / mcs / class / System / System.Net.Mail / AttachmentCollection.cs
index 55cf7dd55049827dd6dc1cdfd4e7675b749f5108..eb9ae46facf443d79c835463267b51f6bd2e7656 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
        {
+               internal AttachmentCollection ()
+               {
+               }
+               
                [MonoTODO]
                public void Dispose ()
                {