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 UriFormatException.cs,1.3,1.4


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

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

Modified Files:
        UriFormatException.cs 
Log Message:


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


Index: UriFormatException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/UriFormatException.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** UriFormatException.cs       5 Apr 2003 00:35:16 -0000       1.3
--- UriFormatException.cs       7 Apr 2003 06:03:57 -0000       1.4
***************
*** 1,6 ****
  /*
!  * UriFormatException.cs - Implementation of the "System.UriFormatException" 
class.
   *
!  * Copyright (C) 2001  Free Software Foundation, Inc.
   *
   * Contributed by Stephen Compall <address@hidden>
--- 1,7 ----
  /*
!  * UriFormatException.cs - Implementation of the
!  *            "System.UriFormatException" class.
   *
!  * Copyright (C) 2001, 2003  Free Software Foundation, Inc.
   *
   * Contributed by Stephen Compall <address@hidden>
***************
*** 24,28 ****
--- 25,34 ----
  {
  
+ using System.Runtime.Serialization;
+ 
  public class UriFormatException : FormatException
+ #if !ECMA_COMPAT
+       , ISerializable
+ #endif
  {
  
***************
*** 59,62 ****
--- 65,84 ----
                                }
                        }
+ 
+ #if !ECMA_COMPAT
+ 
+       // De-serialize this object.
+       protected UriFormatException(SerializationInfo info,
+                                                                
StreamingContext context)
+               : base(info, context) {}
+ 
+       // Get the serialization data for this object.
+       void ISerializable.GetObjectData(SerializationInfo info,
+                                                                        
StreamingContext context)
+               {
+                       base.GetObjectData(info, context);
+               }
+ 
+ #endif // !ECMA_COMPAT
  
  }; // class UriFormatException





reply via email to

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