protected override void ReadLine(BinaryReader reader) { AuctionDiscountTable.RowData rowData = new AuctionDiscountTable.RowData(); base.Read <uint>(reader, ref rowData.Type, CVSReader.uintParse); this.columnno = 0; base.Read <uint>(reader, ref rowData.Group, CVSReader.uintParse); this.columnno = 1; base.Read <float>(reader, ref rowData.Discount, CVSReader.floatParse); this.columnno = 2; this.Table.Add(rowData); this.columnno = -1; }
protected override bool OnLine(string[] Fields) { AuctionDiscountTable.RowData rowData = new AuctionDiscountTable.RowData(); if (!base.Parse(Fields[this.ColMap[0]], ref rowData.Type)) { return(false); } if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Group)) { return(false); } if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Discount)) { return(false); } this.Table.Add(rowData); return(true); }