private IEnumerable <string> formatValues(object[] values) { if (schema == null) { StringColumn column = new StringColumn("a"); return(values.Select(v => column.Format(v))); } else { return(schema.FormatValues(values)); } }
private void handleSchema() { if (recordCount != 0) { return; } if (!parser.Options.IsFirstRecordSchema) { return; } if (schema != null) { skip(); return; } string[] columnNames = readNextRecord(); schema = new SeparatedValueSchema(); foreach (string columnName in columnNames) { StringColumn column = new StringColumn(columnName); schema.AddColumn(column); } }