[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System/Net WebException.cs,1.3,1.4
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System/Net WebException.cs,1.3,1.4 |
Date: |
Mon, 07 Apr 2003 02:04:00 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System/Net
In directory subversions:/tmp/cvs-serv11023/System/Net
Modified Files:
WebException.cs
Log Message:
Add serialization support to exception classes in "System" and "System.Xml".
Index: WebException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Net/WebException.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** WebException.cs 5 Apr 2003 00:35:16 -0000 1.3
--- WebException.cs 7 Apr 2003 06:03:57 -0000 1.4
***************
*** 23,28 ****
--- 23,35 ----
using System;
+ using System.Runtime.Serialization;
+ #if !ECMA_COMPAT
+ [Serializable]
+ #endif
public class WebException : InvalidOperationException
+ #if !ECMA_COMPAT
+ , ISerializable
+ #endif
{
//Variables
***************
*** 68,71 ****
--- 75,82 ----
mystatus = status;
}
+ #if !ECMA_COMPAT
+ protected WebException(SerializationInfo info, StreamingContext context)
+ : base(info, context) {}
+ #endif
***************
*** 104,107 ****
--- 115,127 ----
}
+
+ #if !ECMA_COMPAT
+ // Get the serialization data for this object.
+ void ISerializable.GetObjectData(SerializationInfo info,
+
StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ }
+ #endif
}; // class WebException
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System/Net WebException.cs,1.3,1.4,
Rhys Weatherley <address@hidden> <=