public void LoadOldFormat(BinaryReader reader) { string magic = BinIO.magic_get(reader, "linerec".Length); CHECK_ARG(magic == "linerec" || magic == "linerc2", "magic=='linerec' || magic=='linerc2'"); PLoad(reader); IComponent comp = ComponentIO.load_component(reader); IModel cmodel = comp as IModel; classifier.Object = cmodel; counts.Clear(); if (magic == "linerec") { PSet("minsize_factor", 0.0); } else if (magic == "linerc2") { Narray <int> intcount = counts; BinIO.narray_read(reader, intcount); } }