New test.
[mono.git] / mcs / class / corlib / System.Text / MLangCodePageEncoding.cs
index 6e7202a0187b06ce55e295eb41c1afce22c2149e..4e9ab136c997213c114a0738f751a01990593a56 100644 (file)
@@ -2,9 +2,9 @@
 // System.Text.MLangCodePageEncoding.cs
 //
 // Author:
-//   Kornél Pál <http://www.kornelpal.hu/>
+//   Kornél Pál <http://www.kornelpal.hu/>
 //
-// Copyright (C) 2006 Kornél Pál
+// Copyright (C) 2006 Kornél Pál
 //
 
 //
@@ -32,7 +32,7 @@
 // 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.
+// deserialized to instances of the above described classes.
 //
 // Use SerializationInfo.SetType() in ISerializable.GetObjectData() method of
 // serializable classes to serialize their instances using a proxy class.
@@ -95,7 +95,6 @@ namespace System.Text
                {
                        private MLangEncoder ()
                        {
-                               throw new ArgumentException ("This class cannot be instantiated.");
                        }
                }
 #endif
@@ -140,7 +139,6 @@ namespace System.Text
                {
                        private MLangDecoder ()
                        {
-                               throw new ArgumentException ("This class cannot be instantiated.");
                        }
                }
 #endif
@@ -166,6 +164,7 @@ namespace System.Text
                                this.encoderFallback = (EncoderFallback) info.GetValue ("encoderFallback", typeof (EncoderFallback));
                                this.decoderFallback = (DecoderFallback) info.GetValue ("decoderFallback", typeof (DecoderFallback));
                        } catch (SerializationException) {
+                               // .NET Framework 1.x has no fallbacks
                                this.isReadOnly = true;
                        }
 #endif