System.Text.UTF8Encoding.UTF8Decoder.UTF8Decoder C# (CSharp) Method

UTF8Decoder() private method

private UTF8Decoder ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
return System
            internal UTF8Decoder(SerializationInfo info, StreamingContext context)
            {
                // Any info?
                if (info==null) throw new ArgumentNullException("info");

                // Get common info
                this.m_encoding = (Encoding)info.GetValue("encoding", typeof(Encoding));

                try
                {
                    this.bits = (int)info.GetValue("wbits", typeof(int));
                    this.m_fallback = (DecoderFallback) info.GetValue("m_fallback", typeof(DecoderFallback));
                }
                catch (SerializationException)
                {
                    this.bits = 0;
                    this.m_fallback = null;
                }
            }

Same methods

UTF8Encoding.UTF8Decoder::UTF8Decoder ( UTF8Encoding encoding ) : System