Josh Close

Results 279 comments of Josh Close

Are you doing multiple files in a row and want to know if a file has a different column order?

I think this is already being done for you... The check for headers matching your model/attributes/map happens for you and then calls the `HeaderValidated` function. The default for this is...

Are you specifying the index for each property in either attributes or a class map?

If you're using attributes already, is there a reason you don't use the attributes included with CsvHelper and just not use a class map? I'll have to think if there...

https://joshclose.github.io/CsvHelper/examples/data-table/

@johnyesberg Oops, thanks. I'll need to add this to the documentation. You could go through the rows and columns like this. ```cs void Main() { var dt = new DataTable();...

> wondering if it is okay to use FluentAssertion lib Does `Assert.ThrowsException` not work in this case? I think instead of a `string` message, it should probably be a `Func`...

Something like this: ```cs public virtual new MemberMap Validate(Func validateExpression, Func validateMessageExpression) { Data.ValidateExpression = (Expression)(field => validateExpression(field)); Data.ValidateMessageExpression = (Expression)(field => validateMessageExpression(field)); return this; } ```

I would think people would naturally want to put it in their message. ```cs $"Validation failed: Field '{field}' cannot contain spaces." ```

It'll still be at least a few weeks. I'm very swamped with work.