Author: kornelpal
Date: 2006-07-04 05:04:55 -0400 (Tue, 04 Jul 2006)
New Revision: 62239

Modified:
   trunk/mcs/class/corlib/System.Text/ChangeLog
   trunk/mcs/class/corlib/System.Text/CodePageEncoding.cs
   trunk/mcs/class/corlib/System.Text/MLangCodePageEncoding.cs
   trunk/mcs/class/corlib/System.Text/SurrogateEncoder.cs
Log:
Added comments on using serialization proxy classes.

Modified: trunk/mcs/class/corlib/System.Text/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Text/ChangeLog        2006-07-04 01:44:07 UTC 
(rev 62238)
+++ trunk/mcs/class/corlib/System.Text/ChangeLog        2006-07-04 09:04:55 UTC 
(rev 62239)
@@ -1,3 +1,9 @@
+2006-07-04  Kornél Pál  <[EMAIL PROTECTED]>
+
+       * CodePageEncoding.cs: Added comment on usage.
+       * MLangCodePageEncoding.cs: Added comment on usage.
+       * SurrogateEncoder.cs: Added comment on usage.
+
 2006-07-03  Kornél Pál  <[EMAIL PROTECTED]>
 
        * CodePageEncoding.cs: Added.

Modified: trunk/mcs/class/corlib/System.Text/CodePageEncoding.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/CodePageEncoding.cs      2006-07-04 
01:44:07 UTC (rev 62238)
+++ trunk/mcs/class/corlib/System.Text/CodePageEncoding.cs      2006-07-04 
09:04:55 UTC (rev 62239)
@@ -29,6 +29,19 @@
 //
 
 //
+// These proxy classes implement IObjectReference.GetRealObject() that returns
+// an instance of the appropriate Encoding, Encoder or Decoder class.
+// As a result serialized objects of these types will transparently be
+// deserialized to the instances of the above described classes.
+//
+// Use SerializationInfo.SetType() in ISerializable.GetObjectData() method of
+// serializable classes to serialize their instances using a proxy class.
+//
+// All of these proxy classes are non-public so they only have to be
+// serialization compatible with .NET Framework.
+//
+
+//
 // .NET Framework 1.x uses this class for single-byte encodings and
 // .NET Framework 2.0 serializes single byte-encodings using a proxy.
 // This class supports serialization compatibility.

Modified: trunk/mcs/class/corlib/System.Text/MLangCodePageEncoding.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/MLangCodePageEncoding.cs 2006-07-04 
01:44:07 UTC (rev 62238)
+++ trunk/mcs/class/corlib/System.Text/MLangCodePageEncoding.cs 2006-07-04 
09:04:55 UTC (rev 62239)
@@ -29,6 +29,19 @@
 //
 
 //
+// These proxy classes implement IObjectReference.GetRealObject() that returns
+// an instance of the appropriate Encoding, Encoder or Decoder class.
+// As a result serialized objects of these types will transparently be
+// deserialized to the instances of the above described classes.
+//
+// Use SerializationInfo.SetType() in ISerializable.GetObjectData() method of
+// serializable classes to serialize their instances using a proxy class.
+//
+// All of these proxy classes are non-public so they only have to be
+// serialization compatible with .NET Framework.
+//
+
+//
 // .NET Framework 1.x uses this class for multi-byte encodings and
 // .NET Framework 2.0 serializes multi-byte encodings using a proxy.
 // This class supports serialization compatibility.

Modified: trunk/mcs/class/corlib/System.Text/SurrogateEncoder.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/SurrogateEncoder.cs      2006-07-04 
01:44:07 UTC (rev 62238)
+++ trunk/mcs/class/corlib/System.Text/SurrogateEncoder.cs      2006-07-04 
09:04:55 UTC (rev 62239)
@@ -29,6 +29,19 @@
 //
 
 //
+// These proxy classes implement IObjectReference.GetRealObject() that returns
+// an instance of the appropriate Encoding, Encoder or Decoder class.
+// As a result serialized objects of these types will transparently be
+// deserialized to the instances of the above described classes.
+//
+// Use SerializationInfo.SetType() in ISerializable.GetObjectData() method of
+// serializable classes to serialize their instances using a proxy class.
+//
+// All of these proxy classes are non-public so they only have to be
+// serialization compatible with .NET Framework.
+//
+
+//
 // .NET Framework 1.x uses this class for GB18030 encoder and
 // .NET Framework 2.0 can deserialize it using a proxy.
 // This class supports serialization compatibility.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to