- Namespace
CsvHelper- Assembly
CsvHelper.dll- Inheritance
- object Attribute CsvBooleanValuesAttribute
- Builds
- net10.0 netstandard2.1 netstandard2.0 net47
The values are matched ignoring ASCII case and surrounding spaces and tabs, as Parse<bool> matches its own. Any other value throws a FormatException.
Constructors
public CsvBooleanValuesAttribute(string trueValue, string falseValue)
Reads trueValue as true and falseValue as false.
Parameters
trueValuestring- The value that means
true. falseValuestring- The value that means
false.
View source
public CsvBooleanValuesAttribute(string[] trueValues, string[] falseValues)
Reads each of trueValues as true and each of falseValues as false.
Parameters
trueValuesstring[]- The values that mean
true. falseValuesstring[]- The values that mean
false.
View source
Properties
The values that mean false.
Property value
View source
The values that mean true.
Property value
View source