Exemplo n.º 1
0
 public void WriteRow(T model,bool error=true)
 {
     if (model== null && error)
     {
         throw new ArgumentNullException("添加空行通常是无效的,如果当真有业务需求,请将error参数设置为false,默认为true");
     }
     var position = TableBuilder.Length - 1;
     PositionMapping.Add(DataList.Count, position);
     DataList.Add(model);
     HasRows = true;
     TableBuilder.Append(GetRowString(model));
 }