Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV Write Quote Non Null Only #266

Open
bakes82 opened this issue Jan 17, 2023 · 1 comment
Open

CSV Write Quote Non Null Only #266

bakes82 opened this issue Jan 17, 2023 · 1 comment

Comments

@bakes82
Copy link

bakes82 commented Jan 17, 2023

Is there an option to only quote non null fields that I don't see? If the string value is null I dont want to see |""|, i just want to see ||. If I say quoteallfield = false then nothing gets quotes and if I say true then all fields get quotes. The use case is NULL = dont write anything, string.empty you would write "" though and any string value would be "my text".

@Cinchoo
Copy link
Owner

Cinchoo commented Jan 18, 2023

Well, there is a way you can accomplish it, sample fiddle shows how

https://dotnetfiddle.net/iNZbhh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants