Table of Contents

Class OptionalAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

Ignore the member when reading if no matching field name can be found.

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

Constructors

OptionalAttribute()

public OptionalAttribute()

Methods

ApplyTo(MemberMap)

public void ApplyTo(MemberMap memberMap)

Parameters

memberMap MemberMap

ApplyTo(ParameterMap)

public void ApplyTo(ParameterMap parameterMap)

Parameters

parameterMap ParameterMap