[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Xml XmlException.cs,1.5,1.6
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Xml XmlException.cs,1.5,1.6 |
Date: |
Mon, 07 Apr 2003 02:04:00 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Xml
In directory subversions:/tmp/cvs-serv11023/System.Xml
Modified Files:
XmlException.cs
Log Message:
Add serialization support to exception classes in "System" and "System.Xml".
Index: XmlException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Xml/XmlException.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** XmlException.cs 5 Apr 2003 00:35:16 -0000 1.5
--- XmlException.cs 7 Apr 2003 06:03:57 -0000 1.6
***************
*** 22,25 ****
--- 22,30 ----
{
+ using System.Runtime.Serialization;
+
+ #if !ECMA_COMPAT
+ [Serializable]
+ #endif
public class XmlException : SystemException
{
***************
*** 59,62 ****
--- 64,76 ----
this.linePosition = linePosition;
}
+ #if !ECMA_COMPAT
+ protected XmlException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ HResult = (int)0x80131940;
+ lineNumber = info.GetInt32("lineNumber");
+ linePosition = info.GetInt32("linePosition");
+ }
+ #endif
// Get the default message to use for this exception type.
***************
*** 94,97 ****
--- 108,124 ----
}
}
+
+ #if !ECMA_COMPAT
+ // Get the serialization data for this object.
+ public override void GetObjectData(SerializationInfo info,
+
StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue("lineNumber", lineNumber);
+ info.AddValue("linePosition", linePosition);
+ info.AddValue("res", String.Empty);
// For compatibility.
+ info.AddValue("args", String.Empty); // For
compatibility.
+ }
+ #endif
}; // class XmlException
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Xml XmlException.cs,1.5,1.6,
Rhys Weatherley <address@hidden> <=