nortal / Utilities.Csv

Library to read and write CSV format according to RFC4180.
Apache License 2.0
7 stars 3 forks source link

Support quoting all values #4

Closed ImrePyhvel closed 7 years ago

ImrePyhvel commented 7 years ago

RFC4180 states:

  1. Each field may or may not be enclosed in double quotes

Some users want to write a more verbose dialect by quoting all values.

Such feature could be exposed as option through CsvSettings class. It should be considered if a simple boolean is sufficient. Alternatives include handling nulls/empty strings differently.

ImrePyhvel commented 7 years ago

Added a setting QuotingMode to CsvSettings class with the following options:

This setting applies only to writing CSV files. Parser continues to support both formats regardless of this configuration value.