Table of Contents

Class ParameterReferenceMap

Namespace
CsvHelper.Configuration
Assembly
CsvHelper.dll

Mapping info for a reference parameter mapping to a class.

public class ParameterReferenceMap
Inheritance
ParameterReferenceMap
Inherited Members

Constructors

ParameterReferenceMap(ParameterInfo, ClassMap)

Initializes a new instance of the ParameterReferenceMap class.

public ParameterReferenceMap(ParameterInfo parameter, ClassMap mapping)

Parameters

parameter ParameterInfo

The parameter.

mapping ClassMap

The ClassMap to use for the reference map.

Properties

Data

Gets the parameter reference map data.

public ParameterReferenceMapData Data { get; }

Property Value

ParameterReferenceMapData

Methods

Prefix(string?, bool)

Appends a prefix to the header of each field of the reference parameter.

public ParameterReferenceMap Prefix(string? prefix = null, bool inherit = false)

Parameters

prefix string

The prefix to be prepended to headers of each reference parameter.

inherit bool

Inherit parent prefixes.

Returns

ParameterReferenceMap

The current ParameterReferenceMap