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