dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private Empty.cs, 1.1,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private Empty.cs, 1.1, 1.2
Date: Tue, 19 Aug 2003 22:44:49 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private
In directory subversions:/tmp/cvs-serv3135/runtime/System/Private

Modified Files:
        Empty.cs 
Log Message:


Serialization for DBNull and Empty.


Index: Empty.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/Empty.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Empty.cs    15 Dec 2001 02:13:00 -0000      1.1
--- Empty.cs    20 Aug 2003 02:44:47 -0000      1.2
***************
*** 2,6 ****
   * Empty.cs - Implementation of the "System.Private.Empty" class.
   *
!  * Copyright (C) 2001  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
--- 2,6 ----
   * Empty.cs - Implementation of the "System.Private.Empty" class.
   *
!  * Copyright (C) 2001, 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 22,27 ****
--- 22,32 ----
  {
  
+ using System.Runtime.Serialization;
+ 
  // This class is used internally as a tag for null references.
  internal sealed class Empty
+ #if CONFIG_SERIALIZATION
+       : ISerializable
+ #endif
  {
  
***************
*** 37,40 ****
--- 42,57 ----
                                return String.Empty;
                        }
+ 
+ #if CONFIG_SERIALIZATION
+ 
+       // Get the serialization data for this object.
+       public void GetObjectData(SerializationInfo info, StreamingContext 
context)
+                       {
+                               UnitySerializationHolder.Serialize
+                                       (info, 
UnitySerializationHolder.UnityType.Empty,
+                                        null, null);
+                       }
+ 
+ #endif
  
  }; // class Empty





reply via email to

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