Merge pull request #3997 from lateralusX/jlorenss/win-api-family-support-safearray
[mono.git] / mcs / class / System / System.Net.Mail / SmtpFailedRecipientsException.cs
index 181cd7a905e65689be1059afc83d340b708f158b..6f2e3af8e50d808092b2836f09c10893d703c199 100644 (file)
@@ -28,8 +28,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System.Collections;
 using System.Runtime.Serialization;
 
@@ -63,6 +61,7 @@ namespace System.Net.Mail {
                }
 
                protected SmtpFailedRecipientsException (SerializationInfo info, StreamingContext context)
+               : base(info, context)
                {
                        if (info == null)
                                throw new ArgumentNullException ("info");
@@ -85,18 +84,16 @@ namespace System.Net.Mail {
                {
                        if (info == null)
                                throw new ArgumentNullException ("info");
+                       base.GetObjectData (info, context);
                        info.AddValue ("innerExceptions", innerExceptions);
                }
 
-#if !TARGET_JVM //remove private implementation
                void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
                {
                        GetObjectData (info, context);
                }
-#endif
 
                #endregion // Methods
        }
 }
 
-#endif // NET_2_0