// 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
//
//
// 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.
{
private MLangEncoder ()
{
- throw new ArgumentException ("This class cannot be instantiated.");
}
}
#endif
{
private MLangDecoder ()
{
- throw new ArgumentException ("This class cannot be instantiated.");
}
}
#endif
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