Browse Source

2005-12-26 John Luke <[email protected]>

        * AttachmentCollection.cs: mark sealed
        * DeliveryNotificationOptions.cs: fix values

svn path=/trunk/mcs/; revision=54851
John Luke 20 years ago
parent
commit
df04ceaead

+ 2 - 2
mcs/class/System/System.Net.Mail/AttachmentCollection.cs

@@ -35,14 +35,14 @@ 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 ();

+ 5 - 0
mcs/class/System/System.Net.Mail/ChangeLog

@@ -1,3 +1,8 @@
+2005-12-26  John Luke  <[email protected]>
+
+	* AttachmentCollection.cs: mark sealed
+	* DeliveryNotificationOptions.cs: fix values
+	
 2005-12-25  John Luke  <[email protected]>
 
 	* SmtpStatusCode.cs: OK > Ok

+ 3 - 3
mcs/class/System/System.Net.Mail/DeliveryNotificationOptions.cs

@@ -37,11 +37,11 @@ namespace System.Net.Mail {
 	[Flags]
 	public enum DeliveryNotificationOptions
 	{
-		Delay,
-		Never,
 		None,
-		OnFailure,
 		OnSuccess,
+		OnFailure,
+		Delay,
+		Never = 134217728,
 	}
 }