Class ParameterMapData
- Namespace
- CsvHelper.Configuration
- Assembly
- CsvHelper.dll
The constructor parameter data for the map.
public class ParameterMapData
- Inheritance
-
ParameterMapData
- Inherited Members
Constructors
ParameterMapData(ParameterInfo)
Initializes a new instance of the ParameterMapData class.
public ParameterMapData(ParameterInfo parameter)
Parameters
parameter
ParameterInfoThe constructor parameter.
Properties
Constant
Gets or sets the constant value used for every record.
public virtual object? Constant { get; set; }
Property Value
Default
Gets or sets the default value used when a CSV field is empty.
public virtual object? Default { get; set; }
Property Value
Ignore
Gets or sets a value indicating whether the field should be ignored.
public virtual bool Ignore { get; set; }
Property Value
Index
Gets or sets the column index.
public virtual int Index { get; set; }
Property Value
IsConstantSet
Gets or sets a value indicating if a constant was explicitly set.
public virtual bool IsConstantSet { get; set; }
Property Value
IsDefaultSet
Gets or sets a value indicating whether this instance is default value set. the default value was explicitly set. True if it was explicitly set, otherwise false.
public virtual bool IsDefaultSet { get; set; }
Property Value
IsIndexSet
Gets or sets a value indicating if the index was explicitly set. True if it was explicitly set, otherwise false.
public virtual bool IsIndexSet { get; set; }
Property Value
IsNameSet
Gets or sets a value indicating if the name was explicitly set. True if it was explicitly set, otherwise false.
public virtual bool IsNameSet { get; set; }
Property Value
IsOptional
Gets or sets a value indicating if a field is optional.
public virtual bool IsOptional { get; set; }
Property Value
NameIndex
Gets or sets the index of the name. This is used if there are multiple columns with the same names.
public virtual int NameIndex { get; set; }
Property Value
Names
Gets the list of column names.
public virtual MemberNameCollection Names { get; }
Property Value
Parameter
Gets the ParameterInfo that the data is associated with.
public virtual ParameterInfo Parameter { get; }
Property Value
TypeConverter
Gets or sets the type converter.
public virtual ITypeConverter? TypeConverter { get; set; }
Property Value
TypeConverterOptions
Gets or sets the type converter options.
public virtual TypeConverterOptions TypeConverterOptions { get; set; }