public enum CsvQuoting
Namespace
CsvHelper
Assembly
CsvHelper.dll
Builds
net10.0 netstandard2.1 netstandard2.0 net47

Values

NameValueDescription
WhenNeeded0Quote only fields that contain the separator, a quote, CR or LF, as RFC 4180 requires (the default). A record whose only field is empty is written as "" so it is not mistaken for an empty line.
Always1Quote every field. Also valid RFC 4180.
WhenNeededOrWhitespace2Quote the fields that need it and those that start or end with a space or a tab, so that readers that trim whitespace (outside quotes) keep it, as CsvHelper 33 and earlier did by default. Also valid RFC 4180.