dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets SocketException.c


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets SocketException.cs,1.6,1.7
Date: Mon, 07 Apr 2003 02:04:00 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets
In directory subversions:/tmp/cvs-serv11023/System/Net/Sockets

Modified Files:
        SocketException.cs 
Log Message:


Add serialization support to exception classes in "System" and "System.Xml".


Index: SocketException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets/SocketException.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** SocketException.cs  15 Feb 2003 18:23:48 -0000      1.6
--- SocketException.cs  7 Apr 2003 06:03:57 -0000       1.7
***************
*** 2,6 ****
   * SocketException.cs - Implementation of the 
"System.Net.Sockets.SocketException" class.
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
  *
   * This program is free software, you can redistribute it and/or modify
--- 2,6 ----
   * SocketException.cs - Implementation of the 
"System.Net.Sockets.SocketException" class.
   *
!  * Copyright (C) 2002, 2003  Southern Storm Software, Pty Ltd.
  *
   * This program is free software, you can redistribute it and/or modify
***************
*** 24,31 ****
  using System;
  using Platform;
  #if !ECMA_COMPAT
!       using System.ComponentModel;
  #endif
- 
  public class SocketException :
  #if !ECMA_COMPAT
--- 24,33 ----
  using System;
  using Platform;
+ using System.ComponentModel;
+ using System.Runtime.Serialization;
+ 
  #if !ECMA_COMPAT
! [Serializable]
  #endif
  public class SocketException :
  #if !ECMA_COMPAT
***************
*** 44,47 ****
--- 46,56 ----
                        errno = Errno.EREMOTEIO;
                }
+ #if !ECMA_COMPAT
+       protected SocketException(SerializationInfo info, StreamingContext 
context)
+               : base(info, context)
+               {
+                       errno = Errno.EREMOTEIO;
+               }
+ #endif
        internal SocketException(String msg)
                : base(msg)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]