internal Decoder(SerializationInfo info, StreamingContext context)
{
// Any info?
if (info==null) throw new ArgumentNullException("info");
// Get Common Info
this.lastByte = (int)info.GetValue("lastByte", typeof(int));
try
{
this.m_encoding = (Encoding)info.GetValue("m_encoding", typeof(Encoding));
this.lastChar = (char)info.GetValue("lastChar", typeof(char));
this.m_fallback = (DecoderFallback)info.GetValue("m_fallback", typeof(DecoderFallback));
}
catch (SerializationException)
{
bool bigEndian = (bool)info.GetValue("bigEndian", typeof(bool));
this.m_encoding = new UnicodeEncoding(bigEndian, false);
}
}