public override void Deserialize(CRioArchive arc) { int count = arc.ReadCount(); SetSize(count); for (int i = 0; i < count; ++i) { if (arc.ReadBool()) { var obj = new CType(); m_data[i] = obj; obj.Deserialize(arc); } } }