internal CodePageEncodingSurrogate(SerializationInfo info, StreamingContext context)
{
if (info == null)
{
throw new ArgumentNullException(nameof(info));
}
_codePage = (int)info.GetValue(CodePageKey, typeof(int));
_isReadOnly = (bool)info.GetValue(IsReadOnlyKey, typeof(bool));
_encoderFallback = (EncoderFallback)info.GetValue(EncoderFallbackKey, typeof(EncoderFallback));
_decoderFallback = (DecoderFallback)info.GetValue(DecoderFallbackKey, typeof(DecoderFallback));
}