void IPersistable.Deserialize(IntermediateFormatReader reader) { reader.RegisterDeclaration(m_Declaration); while (reader.NextMember()) { switch (reader.CurrentMember.MemberName) { case MemberName.Shape: m_shape = (ImageMapArea.ImageMapAreaShape)reader.ReadEnum(); break; case MemberName.Coordinates: m_coordinates = reader.ReadSingleArray(); break; case MemberName.ToolTip: m_toolTip = reader.ReadString(); break; default: Global.Tracer.Assert(condition: false); break; } } }