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/Text/RegularExpressions regex


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Text/RegularExpressions regex.cs,1.2,1.3
Date: Mon, 26 May 2003 00:41:22 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions
In directory subversions:/tmp/cvs-serv26070/System/Text/RegularExpressions

Modified Files:
        regex.cs 
Log Message:


Add the CONFIG_SERIALIZATION option to the profiles.


Index: regex.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions/regex.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** regex.cs    14 Feb 2003 17:21:32 -0000      1.2
--- regex.cs    26 May 2003 04:41:20 -0000      1.3
***************
*** 35,39 ****
        
        [Serializable]
!       public class Regex : ISerializable {
                public static void CompileToAssembly
                        (RegexCompilationInfo[] regexes, AssemblyName aname)
--- 35,43 ----
        
        [Serializable]
!       public class Regex
! #if CONFIG_SERIALIZATION
!       : ISerializable
! #endif
!       {
                public static void CompileToAssembly
                        (RegexCompilationInfo[] regexes, AssemblyName aname)
***************
*** 177,184 ****
--- 181,190 ----
                }
  
+ #if CONFIG_SERIALIZATION
                protected Regex (SerializationInfo info, StreamingContext 
context) :
                        this (info.GetString ("pattern"), 
                              (RegexOptions) info.GetValue ("options", typeof 
(RegexOptions))) {                        
                }
+ #endif
  
  
***************
*** 345,348 ****
--- 351,355 ----
                }
  
+ #if CONFIG_SERIALIZATION
                // ISerializable interface
                public virtual void GetObjectData (SerializationInfo info, 
StreamingContext context) {
***************
*** 350,353 ****
--- 357,361 ----
                        info.AddValue ("options", this.Options, typeof 
(RegexOptions));
                }
+ #endif
  
                // internal





reply via email to

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