System.Text.EncodingNLS.CodePageEncodingSurrogate.CodePageEncodingSurrogate C# (CSharp) Method

CodePageEncodingSurrogate() private method

private CodePageEncodingSurrogate ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System
            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));
            }