Exemplo n.º 1
0
 protected override void ReadLine(BinaryReader reader)
 {
     CardStoreTable.RowData rowData = new CardStoreTable.RowData();
     base.Read <uint>(reader, ref rowData.store, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <uint>(reader, ref rowData.probability, CVSReader.uintParse);
     this.columnno = 1;
     base.Read <string>(reader, ref rowData.words, CVSReader.stringParse);
     this.columnno = 2;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Exemplo n.º 2
0
 protected override bool OnLine(string[] Fields)
 {
     CardStoreTable.RowData rowData = new CardStoreTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.store))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.probability))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.words))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }