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