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
parameterParameterInfoThe parameter.
mappingClassMapThe ClassMap to use for the reference map.
Properties
Data
Gets the parameter reference map data.
public ParameterReferenceMapData Data { get; }
Property Value
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
prefixstringThe prefix to be prepended to headers of each reference parameter.
inheritboolInherit parent prefixes.
Returns
- ParameterReferenceMap
The current ParameterReferenceMap