System.Text.DecoderNLS.DecoderNLSSurrogate.DecoderNLSSurrogate C# (CSharp) Method

DecoderNLSSurrogate() private method

private DecoderNLSSurrogate ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System
            internal DecoderNLSSurrogate(SerializationInfo info, StreamingContext context)
            {
                if (info == null)
                {
                    throw new ArgumentNullException(nameof(info));
                }
                _encoding = (Encoding)info.GetValue(EncodingKey, typeof(Encoding));
                _fallback = (DecoderFallback)info.GetValue(DecoderFallbackKey, typeof(DecoderFallback));
            }