Exemplo n.º 1
0
 protected override void ReadLine(BinaryReader reader)
 {
     GuildSalaryDesc.RowData rowData = new GuildSalaryDesc.RowData();
     base.Read <int>(reader, ref rowData.Type, CVSReader.intParse);
     this.columnno = 0;
     base.Read <string>(reader, ref rowData.Desc, CVSReader.stringParse);
     this.columnno = 1;
     base.Read <int>(reader, ref rowData.Go, CVSReader.intParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.GoLabel, CVSReader.stringParse);
     this.columnno = 3;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Exemplo n.º 2
0
 protected override bool OnLine(string[] Fields)
 {
     GuildSalaryDesc.RowData rowData = new GuildSalaryDesc.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.Type))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Desc))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Go))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.GoLabel))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }