2002-03-13 Duncan Mak <duncan@ximian.com>
+ * XmlException.cs: Made it [Serializable], implemented good ol'
+ GetObjectData, and the serialization constructor.
+
* XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
(SetNamedItem): Reverted (added back in) the patch with the
ReadOnly checks. "Don't doubt yourself, my son... you were right!"
namespace System.Xml
{
+ [Serializable]
public class XmlException : SystemException
{
#region Fields
{
}
- [MonoTODO]
protected XmlException (SerializationInfo info, StreamingContext context)
{
- throw new NotImplementedException ();
+ this.lineNumber = info.GetInt32 ("lineNumber");
+ this.linePosition = info.GetInt32 ("linePosition");
}
- internal XmlException (string message) : base (message)
+ internal XmlException (string message)
+ : base (message)
{
}
}
#endregion
+
+ #region Methods
+
+ public override void GetObjectData (SerializationInfo info, StreamingContext context)
+ {
+ base.GetObjectData (info, context);
+ info.AddValue ("lineNumber", lineNumber);
+ info.AddValue ("linePosition", linePosition);
+ }
+
+ #endregion
}
}