internal State(BinaryFormatter parent, SerializationHintsAttribute hints, Type t) { BinaryFormatter.WriteLine("New State: {0}", t != null ? t.FullName : "<null>"); TypeDescriptor td = (t != null) ? new TypeDescriptor(t) : null; m_parent = parent; m_value = new TypeHandler(parent, hints, td); }
internal TypeHandler(BinaryFormatter bf, SerializationHintsAttribute hints, TypeDescriptor expected) { m_bf = bf; m_value = null; m_type = null; m_hints = hints; m_typeExpected = expected; m_typeForced = null; }