MemberMapData Class
The configured data for the member map.
Namespace
CsvHelper.Configuration
Base Types
  • object
graph BT Type-->Base0["object"] Type["MemberMapData"] class Type type-node

Syntax

public class MemberMapData

Constructors

Name Summary
MemberMapData(MemberInfo) Initializes a new instance of the MemberMapData class.

Properties

Name Property Type Summary
Constant object
Gets or sets the constant value used for every record.
Default object
Gets or sets the default value used when a CSV field is empty.
Ignore bool
Gets or sets a value indicating whether the field should be ignored.
Index int
Gets or sets the column index.
IndexEnd int
Gets or sets the index end. The Index end is used to specify a range for use with a collection member. Index is used as the start of the range, and IndexEnd is the end of the range.
IsConstantSet bool
Gets or sets a value indicating if a constant was explicitly set.
IsDefaultSet bool
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.
IsIndexSet bool
Gets or sets a value indicating if the index was explicitly set. True if it was explicitly set, otherwise false.
IsNameSet bool
Gets or sets a value indicating if the name was explicitly set. True if it was explicitly set, otherwise false.
IsOptional bool
Gets or sets a value indicating if a field is optional.
Member MemberInfo
Gets the MemberInfo that the data is associated with.
NameIndex int
Gets or sets the index of the name. This is used if there are multiple columns with the same names.
Names MemberNameCollection
Gets the list of column names.
ReadingConvertExpression Expression?
Gets or sets the expression used to convert data in the row to the member.
Type Type
Gets the member type.
TypeConverter ITypeConverter
Gets or sets the type converter.
TypeConverterOptions TypeConverterOptions
Gets or sets the type converter options.
UseDefaultOnConversionFailure bool
Gets or setse a value indicating if the default value should be used when a type conversion failure happens. true to use the default, otherwise false.
ValidateExpression Expression?
Gets or sets the expression use to validate a field.
ValidateMessageExpression Expression?
Gets or sets the expression used to get the validation message when validation fails.
WritingConvertExpression Expression?
Gets or sets the expression to be used to convert the object to a field.