Example #1
0
 public CsvColumnDefinition(CsvColumnIdentity identity, Func <TModel, string> bindValueFunc)
 {
     Identity      = identity ?? throw new ArgumentNullException(nameof(identity));
     BindValueFunc = bindValueFunc ?? throw new ArgumentNullException(nameof(bindValueFunc));
 }
Example #2
0
 public CsvResponseBuilder <T> WithColumn(CsvColumnIdentity column, Func <T, string> valueBinding)
 {
     _columns.Add(new CsvColumnDefinition <T>(column, valueBinding));
     return(this);
 }