public void AddRow(params object[] Items)
{
// Convert the array into a list
List<string> Row = new List<string>();
foreach (object Item in Items)
Row.Add(Item.ToString());
// Fill in empty values
if (Row.Count != RowSize)
for (int i = Row.Count; i < RowSize; i++)
Row.Add("0");
Rows.Add(Row);
}
FormattedOutput::AddRow ( List |
/// <summary> /// Writes a Data line with the specified parameters /// </summary> /// <param name="Params"></param> public void WriteDataLine(params object[] Params) { if (Transpose) { Formatted.AddRow(Params); } else { ResponseBody.AppendFormat("\nD\t{0}", String.Join("\t", Params)); } }