Josh Close
Josh Close
If you're using `record struct Record` you're able to just set `[property: Name("id")]` and it works. This is because value types don't get constructor parameter mapping. The reason you're getting...
I just dug a little deeper. When constructors are mapped, so are parameters... but the parameters aren't used with creating the object. I'll have to come up with some rules...
Maybe you can give your thoughts on this. https://github.com/JoshClose/CsvHelper/discussions/2052
It actually used to be like that. The configuration is immutable and all mutable properties were moved to the context. This was to fix issues people were having with multi-threading.
What version are you on? You should register your class map like this ```cs csvWriter.Context.RegisterClassMap(); ``` You don't need to call `csvWriter.Flush()`. That will happen automatically. You don't have any...
There isn't enough information in your example for me to figure out anything else. Can you make a small example that shows the error? Maybe you can modify this example....
`CsvWriter` works just like `StreamWriter`. It has an internal buffer that will flush to the `TextWriter` on it's own and when disposed. If you don't dispose after writing, you'll need...
This is expected. All values from a configuration are copied locally in the constructor. `csv.Configuration.HasHeaderRecord` is read only. The configuration on the context is there if you need to access...
Writers in .NET like `StreamWriter` don't do this. I was looking up why and came across this. https://social.msdn.microsoft.com/Forums/en-US/da7bc3e6-70fa-479b-a35c-fd8bbc72b6c5/should-streamwriter-autoclose-in-destructor?forum=csharplanguage Thoughts?
There is no place where an async read or write happens that a cancellation token can be passed in. Should this still be implemented? If yes, then shouldn't it be...