CsvNullValuesAttribute(params string[])
Added in v34.0.0
public CsvNullValuesAttribute(params string[] values)Reads the given values as null.
Parameters
valuesstring[]- The values that mean
null.
Attribute in CsvHelper
Reads the given values of a field as null, for a member of a CsvRecordAttribute type whose type is a reference type or a Nullable<T>, such as NULL or \N in database exports.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter)]
public sealed class CsvNullValuesAttribute : AttributeCsvHelperCsvHelper.dllThe field must equal a value exactly (ordinal comparison, after the trimming the reader options ask for). An empty field still reads as null for a Nullable<T> and as "" for a string; list "" to make empty strings null.
public CsvNullValuesAttribute(params string[] values)Reads the given values as null.
valuesstring[]null.public CsvNullValuesAttribute(string value)Reads value as null.
valuestringnull.public IReadOnlyList<string> Values { get; }The values that mean null.