Table of Contents

Class NullValuesAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

The string values used to represent null when converting.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class NullValuesAttribute : Attribute, IMemberMapper, IParameterMapper
Inheritance
NullValuesAttribute
Implements
Inherited Members

Constructors

NullValuesAttribute(string)

The string values used to represent null when converting.

public NullValuesAttribute(string nullValue)

Parameters

nullValue string

The null values.

NullValuesAttribute(params string[])

The string values used to represent null when converting.

public NullValuesAttribute(params string[] nullValues)

Parameters

nullValues string[]

The null values.

Properties

NullValues

Gets the null values.

public string[] NullValues { get; }

Property Value

string[]

Methods

ApplyTo(MemberMap)

public void ApplyTo(MemberMap memberMap)

Parameters

memberMap MemberMap

ApplyTo(ParameterMap)

public void ApplyTo(ParameterMap parameterMap)

Parameters

parameterMap ParameterMap