Table of Contents

Class BooleanTrueValuesAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

The string values used to represent a boolean true when converting.

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

Constructors

BooleanTrueValuesAttribute(string)

The string values used to represent a boolean true when converting.

public BooleanTrueValuesAttribute(string trueValue)

Parameters

trueValue string

BooleanTrueValuesAttribute(params string[])

The string values used to represent a boolean true when converting.

public BooleanTrueValuesAttribute(params string[] trueValues)

Parameters

trueValues string[]

Properties

TrueValues

Gets the true values.

public string[] TrueValues { 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