protected override void ReadLine(BinaryReader reader) { FirstPassReward.RowData rowData = new FirstPassReward.RowData(); base.Read <int>(reader, ref rowData.ID, CVSReader.intParse); this.columnno = 0; base.ReadSeq <int>(reader, ref rowData.Rank, CVSReader.intParse); this.columnno = 1; base.ReadSeqList <int>(reader, ref rowData.Reward, CVSReader.intParse); this.columnno = 2; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { FirstPassReward.RowData rowData = new FirstPassReward.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.ID)) { return(false); } if (!base.Parse <int>(Fields[this.ColMap[1]], ref rowData.Rank, CVSReader.intParse, "2I")) { return(false); } if (!base.Parse <int>(Fields[this.ColMap[2]], ref rowData.Reward, CVSReader.intParse, "2I")) { return(false); } this.Table.Add(rowData); return(true); }