Author: noaml
Date: 2007-10-18 04:33:36 -0400 (Thu, 18 Oct 2007)
New Revision: 87734

Modified:
   trunk/mcs/class/System/System.Net.Mail/SmtpException.cs
   trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs
   trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientsException.cs
Log:
'System.Runtime.Serialization.StreamingContext is a structure and can not be 
compared with null. Fix compilation error

Modified: trunk/mcs/class/System/System.Net.Mail/SmtpException.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpException.cs     2007-10-18 
08:32:15 UTC (rev 87733)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpException.cs     2007-10-18 
08:33:36 UTC (rev 87734)
@@ -65,8 +65,6 @@
                {
                        if (info == null)
                                throw new ArgumentNullException ("info");
-                       if (context == null)
-                               throw new ArgumentNullException ("context");
                        StatusCode = (SmtpStatusCode) info.GetValue 
("statusCode", typeof (SmtpStatusCode));
                }
 
@@ -96,8 +94,6 @@
                {
                        if (info == null)
                                throw new ArgumentNullException ("info");
-                       if (context == null)
-                               throw new ArgumentNullException ("context");
                        info.AddValue ("statusCode", statusCode, typeof 
(SmtpStatusCode));
                }
 #if !TARGET_JVM //remove private implementation

Modified: trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs      
2007-10-18 08:32:15 UTC (rev 87733)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs      
2007-10-18 08:33:36 UTC (rev 87734)
@@ -58,8 +58,6 @@
                {
                        if (serializationInfo == null)
                                throw new ArgumentNullException 
("serializationInfo");
-                       if (streamingContext == null)
-                               throw new ArgumentNullException 
("streamingContext");
                        failedRecipient = serializationInfo.GetString 
("failedRecipient");
                }
 
@@ -98,8 +96,6 @@
                {
                        if (serializationInfo == null)
                                throw new ArgumentNullException 
("serializationInfo");
-                       if (streamingContext == null)
-                               throw new ArgumentNullException 
("streamingContext");
                        serializationInfo.AddValue ("failedRecipient", 
failedRecipient);
                }
 #if !TARGET_JVM //remove private implementation

Modified: 
trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientsException.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientsException.cs     
2007-10-18 08:32:15 UTC (rev 87733)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientsException.cs     
2007-10-18 08:33:36 UTC (rev 87734)
@@ -66,8 +66,6 @@
                {
                        if (info == null)
                                throw new ArgumentNullException ("info");
-                       if (context == null)
-                               throw new ArgumentNullException ("context");
                        innerExceptions = (SmtpFailedRecipientException []) 
info.GetValue ("innerExceptions", typeof (SmtpFailedRecipientException []));
                }
                
@@ -87,8 +85,6 @@
                {
                        if (info == null)
                                throw new ArgumentNullException ("info");
-                       if (context == null)
-                               throw new ArgumentNullException ("context");
                        info.AddValue ("innerExceptions", innerExceptions);
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to