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; } }