CsvHelper Methods to help with arrays. Trims the characters off the start and end of the buffer by updating the start and length arguments. The buffer. The start. The length. The characters to trim. Determines whether this given array contains the given character. The array to search. The character to look for. true if the array contains the characters, otherwise false. Represents errors that occur due to bad data. The full field unedited. The full row unedited. Initializes a new instance of the class. The full field unedited. The full row unedited. The reading context. Initializes a new instance of the class with a specified error message. The full field unedited. The full row unedited. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The full field unedited. The full row unedited. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. A value indicating whether comments are allowed. Gets a value indicating whether comments are allowed. A value indicating whether comments are allowed. The value indicating whether comments are allowed. The string values used to represent a boolean false when converting. Gets the false values. The string values used to represent a boolean false when converting. The false values. The string values used to represent a boolean false when converting. The false values. The string values used to represent a boolean true when converting. Gets the true values. The string values used to represent a boolean true when converting. The string values used to represent a boolean true when converting. The size of the buffer used for parsing and writing CSV files. Default is 0x1000. The buffer size. The size of the buffer used for parsing and writing CSV files. Cache fields that are created when parsing. Cache fields that are created when parsing. Cache fields that are created when parsing. The character used to denote a line that is commented out. Default is #. Gets the character used to denote a line that is commented out. The character used to denote a line that is commented out. The comment character. The constant value that will be used for every record when reading and writing. This value will always be used no matter what other mapping configurations are specified. Gets the constant. The constant value that will be used for every record when reading and writing. This value will always be used no matter what other mapping configurations are specified. The constant. A value indicating whether the number of bytes should be counted while parsing. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The needs to be set correctly for this to be accurate. A value indicating whether the number of bytes should be counted while parsing. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The needs to be set correctly for this to be accurate. A value indicating whether the number of bytes should be counted while parsing. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The needs to be set correctly for this to be accurate. When applied to a member, specifies the used when type converting the member. When applied to a type, the value of in the returned by Gets the culture info. The name of a culture (case insensitive), or the literal values "InvariantCulture", "CurrentCulture", "CurrentUICulture", "InstalledUICulture" to use the corresponding static properties on . The to use when type converting. This is used when doing any conversions. Gets the date time styles. The to use when type converting. This is used when doing any conversions. The date time styles. The default value that will be used when reading when the CSV field is empty. Gets the default value. The default value that will be used when reading when the CSV field is empty. The default value The delimiter used to separate fields. Gets the delimiter. The delimiter used to separate fields. The delimiter. A value indicating whether changes in the column count should be detected. If , a will be thrown if a different column count is detected. A value indicating whether changes in the column count should be detected. If , a will be thrown if a different column count is detected. A value indicating whether changes in the column count should be detected. If , a will be thrown if a different column count is detected. Detect the delimiter instead of using the delimiter from configuration. Detect the delimiter instead of using the delimiter from configuration. Detect the delimiter instead of using the delimiter from configuration. The possible delimiter values used when detecting the delimiter. Default is [",", ";", "|", "\t"]. The possible delimiter values used when detecting the delimiter. The possible delimiter values used when detecting the delimiter. Whitespace separated list of values. The encoding used when counting bytes. Gets the encoding used when counting bytes. The encoding used when counting bytes. The encoding used when counting bytes. Ignore case when parsing enums. The escape character used to escape a quote inside a field. Gets the escape character used to escape a quote inside a field. The escape character used to escape a quote inside a field. The escape character. A value indicating whether exception messages contain raw CSV data. if exceptions contain raw CSV data, otherwise . A value indicating whether exception messages contain raw CSV data. if exceptions contain raw CSV data, otherwise . A value indicating whether exception messages contain raw CSV data. if exceptions contain raw CSV data, otherwise . The string format to be used when type converting. Gets the formats. The string format to be used when type converting. The format. The string format to be used when type converting. The formats. A value indicating whether the CSV file has a header record. Gets a value indicating whether the CSV file has a header record. A value indicating whether the CSV file has a header record. A value indicating whether the CSV file has a header record. Appends a prefix to the header of each field of the reference member. Gets the prefix. Gets a value indicating whether the prefix should inherit parent prefixes. Appends a prefix to the header of each field of the reference member. Appends a prefix to the header of each field of the reference member. The prefix. Appends a prefix to the header of each field of the reference member. Inherits parent object prefixes. Appends a prefix to the header of each field of the reference member. The prefix. Inherits parent object prefixes. Defines methods to enable pluggable configuration. Applies configuration. The configuration to apply to. Ignore the member when reading and writing. If this member has already been mapped as a reference member, either by a class map, or by automapping, calling this method will not ignore all the child members down the tree that have already been mapped. Ignores base classes when auto mapping. A value indicating whether blank lines should be ignored when reading. Gets a value indicating whether blank lines should be ignored when reading. A value indicating whether blank lines should be ignored when reading. Gets a value indicating whether references should be ignored when auto mapping. to ignore references, otherwise . Gets a value indicating whether references should be ignored when auto mapping. to ignore references, otherwise . Gets a value indicating whether references should be ignored when auto mapping. to ignore references, otherwise . Defines methods to enable pluggable configuration of member mapping. Applies configuration to the given . The member map. Defines methods to enable pluggable configuration of member reference mapping. Applies configuration to the given . The reference map. A value indicating whether private members should be read from and written to. Gets a value indicating whether private members should be read from and written to. A value indicating whether private members should be read from and written to. When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes. Gets the index. Gets the index end. When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes. The index. The index end. Gets the characters that are used for injection attacks. Gets the characters that are used for injection attacks. Default is '=', '@', '+', '-', '\t', '\r'. Gets the characters that are used for injection attacks. The character used to escape a detected injection. The character used to escape a detected injection. The character used to escape a detected injection. The injection options. The injection options. The injection options. Defines methods to enable pluggable configuration of parameter mapping. Applies configuration to the given . The parameter map. Defines methods to enable pluggable configuration of parameter reference mapping. Applies configuration to the given . The reference map. A value indicating whether a line break found in a quote field should be considered bad data. to consider a line break bad data, otherwise . A value indicating whether a line break found in a quote field should be considered bad data. to consider a line break bad data, otherwise . A value indicating whether a line break found in a quote field should be considered bad data. to consider a line break bad data, otherwise . Gets or sets the maximum size of a field. Defaults to 0, indicating maximum field size is not checked. Gets or sets the maximum size of a field. Gets or sets the maximum size of a field. The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties. The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties. The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties. The mode. See for more details. The mode. See for more details. The mode. See for more details. When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. Gets the names. When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. The name When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. The names. When reading, is used to get the index of the name used when there are multiple names that are the same. The name index. When reading, is used to get the index of the name used when there are multiple names that are the same. The name index. The newline string to use. Default is \r\n (CRLF). When writing, this value is always used. When reading, this value is only used if explicitly set. If not set, the parser uses one of \r\n, \r, or \n. The newline string to use. Default is \r\n (CRLF). When writing, this value is always used. When reading, this value is only used if explicitly set. If not set, the parser uses one of \r\n, \r, or \n. The newline string to use. Default is \r\n (CRLF). When writing, this value is always used. When reading, this value is only used if explicitly set. If not set, the parser uses one of \r\n, \r, or \n. The string values used to represent null when converting. Gets the null values. The string values used to represent null when converting. The null values. The string values used to represent null when converting. The null values. The to use when type converting. This is used when doing any number conversions. Gets the number styles. The to use when type converting. This is used when doing any number conversions. The number styles. Ignore the member when reading if no matching field name can be found. The size of the buffer used when processing fields. Default is 1024. The size of the buffer used when processing fields. The size of the buffer used when processing fields. The character used to quote fields. Gets the character used to quote fields. The character used to quote fields. The quote character. The fields trimming options. Gets the fields trimming options. The fields trimming options. The TrimOptions. Specifies the to use when converting the member to and from a CSV field. Gets the type converter. Specifies the to use when converting the member to and from a CSV field. The type of the . Specifies the to use when converting the member to and from a CSV field. The type of the . Type constructor arguments for the type converter. Gets a value indicating that during writing whether a new object should be created when a reference member is . to create a new object and use its defaults for the fields, or to leave the fields empty for all the reference member's members. Gets a value indicating that during writing whether a new object should be created when a reference member is . to create a new object and use its defaults for the fields, or to leave the fields empty for all the reference member's members. Gets a value indicating that during writing whether a new object should be created when a reference member is . to create a new object and use its defaults for the fields, or to leave the fields empty for all the reference member's members. Characters considered whitespace. Used when trimming fields. Default is [' ']. Characters considered whitespace. Used when trimming fields. Characters considered whitespace. Used when trimming fields. Maps class members to CSV fields. The type of the class this map is for. The class constructor parameter mappings. The class member mappings. The class member reference mappings. Allow only internal creation of CsvClassMap. The type of the class this map is for. Maps a member to a CSV field. The type of the class this map is for. This may not be the same type as the member.DeclaringType or the current ClassType due to nested member mappings. The member to map. If true, an existing map will be used if available. If false, a new map is created for the same member. The member mapping. Maps a non-member to a CSV field. This allows for writing data that isn't mapped to a class member. The member mapping. Maps a member to another class map. The type of the class map. The member. Constructor arguments used to create the reference map. The reference mapping for the member. Maps a constructor parameter to a CSV field. The name of the constructor parameter. Maps a constructor parameter to a CSV field. A function that returns the for the constructor. The name of the constructor parameter. Maps a constructor parameter to a CSV field. The for the constructor. The for the constructor parameter. Auto maps all members for the given type. If a member is mapped again it will override the existing map. The culture. Auto maps all members for the given type. If a member is mapped again it will override the existing map. The configuration. Auto maps all members for the given type. If a member is mapped again it will override the existing map. The context. Get the largest index for the members and references. The max index. Resets the indexes based on the given start index. The index start. The last index + 1. Auto maps the given map and checks for circular references as it goes. The map to auto map. The context. The list of parents for the map. The index starting point. Auto maps the given map using constructor parameters. The map. The context. The list of parents for the map. The index starting point. Checks for circular references. The type to check for. The list of parents to check against. A value indicating if a circular reference was found. True if a circular reference was found, otherwise false. Gets the generic type for this class map. Applies attribute configurations to the map. The parameter map. Applies attribute configurations to the map. The parameter reference map. Applies attribute configurations to the map. The member map. Applies attribute configurations to the map. The member reference map. Has mapping capabilities. The class type. Maps a member to a CSV field. The member to map. If true, an existing map will be used if available. If false, a new map is created for the same member. The member mapping. Options after a mapping call. The class type. The member type. Has type converter capabilities. The class type. The member type. Specifies the to use when converting the member to and from a CSV field. The TypeConverter to use. Specifies the to use when converting the member to and from a CSV field. The of the to use. Options after a type converter call. The class type. The member type. Has index capabilities. The class type. The member type. When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes. The index of the CSV field. The end index used when mapping to an member. Options after an index call. The class type. The member type. Has optional capabilities. The class type. The member type. Ignore the member when reading if no matching field name can be found. Options after an optional call. The class type. The member type. Has name capabilities. The class type. The member type. When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. The possible names of the CSV field. Options after a name call. The class type. The member type. Has name index capabilities. The class type. The member type. When reading, is used to get the index of the name used when there are multiple names that are the same. The index of the name. Options after a name index call. The class type. The member type. Has convert using capabilities. The class type. The member type. Specifies an expression to be used to convert data in the row to the member. The convert expression. Specifies an expression to be used to convert the object to a field. The convert expression. Has default capabilities. The class type. The member type. The default value that will be used when reading when the CSV field is empty. The default value. The default value that will be used when reading when the CSV field is empty. This value is not type checked and will use a to convert the field. This could potentially have runtime errors. The default value. Options after a default call. The class type. The member type. Has constant capabilities. The class type. The member type. The constant value that will be used for every record when reading and writing. This value will always be used no matter what other mapping configurations are specified. The constant value. Has validate capabilities. The class type. The member type. The validate expression that will be called on every field when reading. The expression should return true if the field is valid. If false is returned, a will be thrown. The validation expression. Has build capabilities. The class type. Builds the . Collection that holds CsvClassMaps for record types. Gets the for the specified record type. The . The record type. The for the specified record type. Creates a new instance using the given configuration. The context. Finds the for the specified record type. The record type. The for the specified record type. Adds the specified map for it's record type. If a map already exists for the record type, the specified map will replace it. The map. Removes the class map. The class map type. Removes all maps. Goes up the inheritance tree to find the type instance of CsvClassMap{}. The type to traverse. The type that is CsvClassMap{}. Sets defaults for the mapping tree. The defaults used to be set inside the classes, but this didn't allow for the TypeConverter to be created from the Configuration's TypeConverterFactory. The map to set defaults on. Maps class members to CSV fields. The of class to map. Creates an instance of . Maps a member to a CSV field. The member to map. If true, an existing map will be used if available. If false, a new map is created for the same member. The member mapping. Maps a member to a CSV field. The member to map. If true, an existing map will be used if available. If false, a new map is created for the same member. The member mapping. Meant for internal use only. Maps a member to another class map. When this is used, accessing a property through sub-property mapping later won't work. You can only use one or the other. When using this, ConvertUsing will also not work. The type of the class map. The expression. Constructor arguments used to create the reference map. The reference mapping for the member. Represents configuration errors that occur. Initializes a new instance of the class. Initializes a new instance of the class with a specified error message. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Holds the default callback methods for delegate members of CsvHelper.Configuration.Configuration. Throws a if is not empty. Throws a MissingFieldException. Throws a . Throws the given . Returns true if the field contains a , starts with a space, ends with a space, contains \r or \n, or contains the . The args. true if the field should be quoted, otherwise false. Returns the as given. Returns true if : 1. does not have a parameterless constructor 2. has a constructor 3. is not a value type 4. is not a primitive 5. is not an enum 6. is not an interface 7. TypeCode is an Object. Returns the type's constructor with the most parameters. If two constructors have the same number of parameters, then there is no guarantee which one will be returned. If you have that situation, you should probably implement this function yourself. Returns the header name ran through . If no header exists, property names will be Field1, Field2, Field3, etc. The args. Detects the delimiter based on the given text. Return the detected delimiter or null if one wasn't found. The args. Configuration used for reading and writing CSV data. Initializes a new instance of the class using the given . Since uses for its default, the given will be used instead. The culture information. Initializes a new instance of the class using the given . Since uses for its default, the given will be used instead. The culture information. The type that contains the configuration attributes. This will call automatically. Validates the configuration. Applies class level attribute to configuration. Type with attributes. Applies class level attribute to configuration. Type with attributes. Creates a instance configured using CsvHelper attributes applied to at the type-level. This method requires to be annotated with (or to sub-class a type which is). The type whose attributes should be used to configure the instance. This is normally the type you are intending to map for reading and writing. A new instance configured with attributes applied to . CsvHelper attributes applied to members and parameters do not influence the return value of this method. Such attributes do not define values which are used in and instead influence the maps which are built and used during reading and writing. See and . If is not annotated with . If the argument to the is . If the argument to the does not specify a supported culture. Creates a instance configured using and CsvHelper attributes applied to at the type-level. This method ignores any applied to . The to configure the returned with. A new instance configured with and attributes applied to . Creates a instance configured using CsvHelper attributes applied to at the type-level. This method requires to be annotated with (or to sub-class a type which is). A new instance configured with attributes applied to . CsvHelper attributes applied to members and parameters do not influence the return value of this method. Such attributes do not define values which are used in and instead influence the maps which are built and used during reading and writing. See and . If is not annotated with . If the argument to the is . If the argument to the does not specify a supported culture. Creates a instance configured using and CsvHelper attributes applied to at the type-level. This method ignores any applied to . A new instance configured with and attributes applied to A default that can be used to create a class map dynamically. Options for handling injection attacks. No injection protection. Escape injection characters. Strip injection characters. Throw an exception if injection characters are detected. Configuration used for the . Gets the culture info used to read an write CSV files. Cache fields that are created when parsing. Default is false. The newline string to use. Default is \r\n (CRLF). When writing, this value is always used. When reading, this value is only used if explicitly set. If not set, the parser uses one of \r\n, \r, or \n. A value indicating if was set. true if was set. false if is the default. The mode. See for more details. Gets the size of the buffer used for parsing and writing CSV files. Default is 0x1000. The size of the buffer used when processing fields. Default is 1024. Gets a value indicating whether the number of bytes should be counted while parsing. Default is false. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The needs to be set correctly for this to be accurate. Gets the encoding used when counting bytes. Gets the function that is called when bad field data is found. A field has bad data if it contains a quote and the field is not quoted (escaped). You can supply your own function to do other things like logging the issue instead of throwing an exception. Gets or sets the maximum size of a field. Defaults to 0, indicating maximum field size is not checked. Gets a value indicating if a line break found in a quote field should be considered bad data. true to consider a line break bad data, otherwise false. Defaults to false. Gets the character used to denote a line that is commented out. Default is '#'. Gets a value indicating if comments are allowed. true to allow commented out lines, otherwise false. Gets a value indicating if blank lines should be ignored when reading. true to ignore, otherwise false. Default is true. Gets the character used to quote fields. Default is '"'. The delimiter used to separate fields. Default is . Detect the delimiter instead of using the delimiter from configuration. Default is false. Gets the function that is called when is enabled. The possible delimiter values used when detecting the delimiter. Default is [",", ";", "|", "\t"]. The character used to escape characters. Default is '"'. Gets the field trimming options. Characters considered whitespace. Used when trimming fields. Default is [' ']. A value indicating if exception messages contain raw CSV data. true if exception contain raw CSV data, otherwise false. Default is true. Validates the configuration. Configuration used for the . Gets a value indicating if the CSV file has a header record. Default is true. Gets the function that is called when a header validation check is ran. The default function will throw a if there is no header for a given member mapping. You can supply your own function to do other things like logging the issue instead of throwing an exception. Gets the function that is called when a missing field is found. The default function will throw a . You can supply your own function to do other things like logging the issue instead of throwing an exception. Gets the function that is called when a reading exception occurs. The default function will re-throw the given exception. If you want to ignore reading exceptions, you can supply your own function to do other things like logging the issue. Prepares the header field for matching against a member name. The header field and the member name are both ran through this function. You should do things like trimming, removing whitespace, removing underscores, and making casing changes to ignore case. Determines if constructor parameters should be used to create the class instead of the default constructor and members. Chooses the constructor to use for constructor mapping. Gets the name to use for the property of the dynamic object. Gets a value indicating whether references should be ignored when auto mapping. true to ignore references, otherwise false. Default is false. Gets the callback that will be called to determine whether to skip the given record or not. Gets a value indicating if private member should be read from and written to. true to include private member, otherwise false. Default is false. Gets a callback that will return the prefix for a reference header. Gets a value indicating whether changes in the column count should be detected. If true, a will be thrown if a different column count is detected. Gets the member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties. Configuration used for the . Gets the size of the buffer used for parsing and writing CSV files. Default is 0x1000. The mode. See for more details. Gets the delimiter used to separate fields. Default is ','; Gets the character used to quote fields. Default is '"'. The character used to escape characters. Default is '"'. Gets the field trimming options. Gets the injection options. Gets the characters that are used for injection attacks. Gets the character used to escape a detected injection. The newline string to use. Default is \r\n (CRLF). When writing, this value is always used. When reading, this value is only used if explicitly set. If not set, the parser uses one of \r\n, \r, or \n. A value indicating if was set. true if was set. false if is the default. Gets a function that is used to determine if a field should get quoted when writing. Gets the culture info used to read and write CSV files. Gets a value indicating if comments are allowed. True to allow commented out lines, otherwise false. Gets the character used to denote a line that is commented out. Default is '#'. Gets a value indicating if the CSV file has a header record. Default is true. Gets a value indicating whether references should be ignored when auto mapping. True to ignore references, otherwise false. Default is false. Gets a value indicating if private member should be read from and written to. True to include private member, otherwise false. Default is false. Gets a callback that will return the prefix for a reference header. Gets the member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties. Gets a value indicating that during writing if a new object should be created when a reference member is null. True to create a new object and use it's defaults for the fields, or false to leave the fields empty for all the reference member's member. Gets the comparer used to order the properties of dynamic objects when writing. The default is null, which will preserve the order the object properties were created with. A value indicating if exception messages contain raw CSV data. true if exception contain raw CSV data, otherwise false. Default is true. Validates the configuration. Mapping info for a member to a CSV field. Gets the member map data. Type converter options. Creates an instance of using the given Type and . Type of the class the member being mapped belongs to. The member being mapped. When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. The possible names of the CSV field. When reading, is used to get the index of the name used when there are multiple names that are the same. The index of the name. When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes. The index of the CSV field. The end index used when mapping to an member. Ignore the member when reading and writing. If this member has already been mapped as a reference member, either by a class map, or by automapping, calling this method will not ignore all the child members down the tree that have already been mapped. Ignore the member when reading and writing. If this member has already been mapped as a reference member, either by a class map, or by automapping, calling this method will not ignore all the child members down the tree that have already been mapped. True to ignore, otherwise false. The default value that will be used when reading when the CSV field is empty. The default value. Use default on conversion failure. The constant value that will be used for every record when reading and writing. This value will always be used no matter what other mapping configurations are specified. The constant value. Specifies the to use when converting the member to and from a CSV field. The TypeConverter to use. Specifies the to use when converting the member to and from a CSV field. The of the to use. Ignore the member when reading if no matching field name can be found. Specifies an expression to be used to validate a field when reading. Specifies an expression to be used to validate a field when reading along with specified exception message. A collection that holds 's. Gets the number of elements contained in the . The number of elements contained in the . Gets a value indicating whether the is read-only. true if the is read-only; otherwise, false. Initializes a new instance of the class. Initializes a new instance of the class. The comparer to use when sorting the member maps. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. 1 Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. 2 Adds an item to the . The object to add to the . The is read-only. Adds a range of items to the . The collection to add. Removes all items from the . The is read-only. Determines whether the contains a specific value. true if is found in the ; otherwise, false. The object to locate in the . Copies the elements of the to an , starting at a particular index. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.The zero-based index in at which copying begins. is null. is less than 0.The number of elements in the source is greater than the available space from to the end of the destination . Removes the first occurrence of a specific object from the . true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . The object to remove from the . The is read-only. Determines the index of a specific item in the . The index of if found in the list; otherwise, -1. The object to locate in the . Inserts an item to the at the specified index. The zero-based index at which should be inserted. The object to insert into the . is not a valid index in the . The is read-only. Removes the item at the specified index. The zero-based index of the item to remove. is not a valid index in the . The is read-only. Gets or sets the element at the specified index. The element at the specified index. The zero-based index of the element to get or set. is not a valid index in the . The member is set and the is read-only. Finds the using the given member expression. The the member is on. The member expression. The for the given expression, or null if not found. Finds the using the given member. The member. The for the given expression, or null if not found. Adds the members from the mapping. This will recursively traverse the mapping tree and add all members for reference maps. The mapping where the members are added from. Used to compare s. The order is by field index ascending. Any fields that don't have an index are pushed to the bottom. Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. Value Condition Less than zero is less than . Zero equals . Greater than zero is greater than . The first object to compare. The second object to compare. Neither nor implements the interface. -or- and are of different types and neither one can handle comparisons with the other. 2 Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. Value Condition Less than zero is less than . Zero equals . Greater than zero is greater than . The first object to compare. The second object to compare. The configured data for the member map. Gets the member type. Gets the that the data is associated with. Gets the list of column names. Gets or sets the index of the name. This is used if there are multiple columns with the same names. Gets or sets a value indicating if the name was explicitly set. True if it was explicitly set, otherwise false. Gets or sets the column index. 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. Gets or sets a value indicating if the index was explicitly set. True if it was explicitly set, otherwise false. Gets or sets the type converter. Gets or sets the type converter options. Gets or sets a value indicating whether the field should be ignored. Gets or sets the default value used when a CSV field is empty. 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. 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. Gets or sets the constant value used for every record. Gets or sets a value indicating if a constant was explicitly set. Gets or sets the expression used to convert data in the row to the member. Gets or sets the expression to be used to convert the object to a field. Gets or sets the expression use to validate a field. Gets or sets the expression used to get the validation message when validation fails. Gets or sets a value indicating if a field is optional. Initializes a new instance of the class. The member. Sets type converter options on a member map. Creates a new instance using the given . The member map the options are being applied to. The used when type converting. This will override the global setting. The culture info. The to use when type converting. This is used when doing any conversions. The date time style. The to use when type converting. This is used when doing converting. The time span styles. The to use when type converting. This is used when doing any number conversions. The string format to be used when type converting. The format. The to use when converting. This is used when doing conversions. Kind of the URI. The string values used to represent a boolean when converting. A value indicating whether true values or false values are being set. A value indication if the current values should be cleared before adding the new ones. The string boolean values. The string values used to represent null when converting. The values that represent null. The string values used to represent null when converting. A value indication if the current values should be cleared before adding the new ones. The values that represent null. Ignore case when parsing enums. true to ignore case, otherwise false. Mapping info for a member to a CSV field. Creates a new instance using the specified member. When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. The possible names of the CSV field. When reading, is used to get the index of the name used when there are multiple names that are the same. The index of the name. When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes. The index of the CSV field. The end index used when mapping to an member. Ignore the member when reading and writing. If this member has already been mapped as a reference member, either by a class map, or by automapping, calling this method will not ignore all the child members down the tree that have already been mapped. Ignore the member when reading and writing. If this member has already been mapped as a reference member, either by a class map, or by automapping, calling this method will not ignore all the child members down the tree that have already been mapped. True to ignore, otherwise false. The default value that will be used when reading when the CSV field is empty. The default value. Use default on conversion failure. The default value that will be used when reading when the CSV field is empty. This value is not type checked and will use a to convert the field. This could potentially have runtime errors. The default value. Use default on conversion failure. The constant value that will be used for every record when reading and writing. This value will always be used no matter what other mapping configurations are specified. The constant value. Specifies the to use when converting the member to and from a CSV field. The TypeConverter to use. Specifies the to use when converting the member to and from a CSV field. The of the to use. Specifies an expression to be used to convert data in the row to the member. The convert expression. Specifies an expression to be used to convert the object to a field. The convert expression. Ignore the member when reading if no matching field name can be found. Specifies an expression to be used to validate a field when reading. Specifies an expression to be used to validate a field when reading along with specified exception message. A collection that holds member names. Gets the name at the given index. If a prefix is set, it will be prepended to the name. Gets the prefix to use for each name. Gets the raw list of names without the prefix being prepended. Gets the count. Adds the given name to the collection. The name to add. Clears all names from the collection. Adds a range of names to the collection. The range to add. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. 1 Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. 2 Mapping info for a reference member mapping to a class. Gets the member reference map data. Initializes a new instance of the class. The member. The to use for the reference map. Appends a prefix to the header of each field of the reference member. The prefix to be prepended to headers of each reference member. Inherit parent prefixes. The current Get the largest index for the members and references. The max index. A collection that holds 's. Gets the number of elements contained in the . The number of elements contained in the . Gets a value indicating whether the is read-only. true if the is read-only; otherwise, false. Gets or sets the element at the specified index. The element at the specified index. The zero-based index of the element to get or set. is not a valid index in the . The member is set and the is read-only. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. 1 Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. 2 Adds an item to the . The object to add to the . The is read-only. Removes all items from the . The is read-only. Determines whether the contains a specific value. true if is found in the ; otherwise, false. The object to locate in the . Copies the elements of the to an , starting at a particular index. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than 0. The number of elements in the source is greater than the available space from to the end of the destination . Removes the first occurrence of a specific object from the . true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . The object to remove from the . The is read-only. Determines the index of a specific item in the . The index of if found in the list; otherwise, -1. The object to locate in the . Inserts an item to the at the specified index. The zero-based index at which should be inserted. The object to insert into the . is not a valid index in the . The is read-only. Removes the item at the specified index. The zero-based index of the item to remove. is not a valid index in the . The is read-only. Finds the using the given member expression. The the member is on. The member expression. The for the given expression, or null if not found. Finds the using the given member. The member. The for the given expression, or null if not found. The configuration data for the reference map. Gets or sets the header prefix to use. Gets or sets a value indicating if a prefix should inherit its parent. true to inherit, otherwise false. Gets the that the data is associated with. Gets the mapping this is a reference for. Initializes a new instance of the class. The member. The mapping this is a reference for. Flags for the type of members that can be used for auto mapping. No members. This is not a valid value and will cause an exception if used. Properties on a class. Fields on a class. Mapping for a constructor parameter. This may contain value type data, a constructor type map, or a reference map, depending on the type of the parameter. Gets the parameter map data. Type converter options. Gets or sets the map for a constructor type. Gets or sets the map for a reference type. Creates an instance of using the given information. The parameter being mapped. When reading, is used to get the field at the index of the name if there was a header specified. It will look for the first name match in the order listed. When writing, sets the name of the field in the header record. The first name will be used. The possible names of the CSV field. When reading, is used to get the index of the name used when there are multiple names that are the same. The index of the name. When reading, is used to get the field at the given index. When writing, the fields will be written in the order of the field indexes. The index of the CSV field. Ignore the parameter when reading and writing. Ignore the parameter when reading and writing. True to ignore, otherwise false. The default value that will be used when reading when the CSV field is empty. The default value. The constant value that will be used for every record when reading and writing. This value will always be used no matter what other mapping configurations are specified. The constant value. The field is optional. Specifies the to use when converting the parameter to and from a CSV field. The TypeConverter to use. Specifies the to use when converting the parameter to and from a CSV field. The of the to use. The constructor parameter data for the map. Gets the that the data is associated with. Gets the list of column names. Gets or sets the index of the name. This is used if there are multiple columns with the same names. Gets or sets a value indicating if the name was explicitly set. True if it was explicitly set, otherwise false. Gets or sets the column index. Gets or sets a value indicating if the index was explicitly set. True if it was explicitly set, otherwise false. Gets or sets the type converter. Gets or sets the type converter options. Gets or sets a value indicating whether the field should be ignored. Gets or sets the default value used when a CSV field is empty. 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. Gets or sets the constant value used for every record. Gets or sets a value indicating if a constant was explicitly set. Gets or sets a value indicating if a field is optional. Initializes a new instance of the class. The constructor parameter. Sets type converter options on a parameter map. Creates a new instance using the given . The member map the options are being applied to. The used when type converting. This will override the global setting. The culture info. The to use when type converting. This is used when doing any conversions. The date time style. The to use when type converting. This is used when doing converting. The time span styles. The to use when type converting. This is used when doing any number conversions. The string format to be used when type converting. The format. The to use when converting. This is used when doing conversions. Kind of the URI. The string values used to represent a boolean when converting. A value indicating whether true values or false values are being set. A value indication if the current values should be cleared before adding the new ones. The string boolean values. The string values used to represent null when converting. The values that represent null. The string values used to represent null when converting. A value indication if the current values should be cleared before adding the new ones. The values that represent null. Mapping info for a reference parameter mapping to a class. Gets the parameter reference map data. Initializes a new instance of the class. The parameter. The to use for the reference map. Appends a prefix to the header of each field of the reference parameter. The prefix to be prepended to headers of each reference parameter. Inherit parent prefixes. The current Get the largest index for the members and references. The max index. The configuration data for the reference map. Gets or sets the header prefix to use. Gets or sets a value indicating if a prefix should inherit its parent. true to inherit, otherwise false. Gets the that the data is associated with. Gets the mapping this is a reference for. Initializes a new instance of the class. The parameter. The mapping this is a reference for. Options for trimming of fields. No trimming. Trims the whitespace around a field. Trims the whitespace inside of quotes around a field. Share state for CsvHelper. Gets or sets the . Gets or sets the . The configured s. Gets the parser. Gets the reader. Gets the writer. Gets the configuration. Initializes a new instance of the class. The reader. Initializes a new instance of the class. The parser. Initializes a new instance of the class. The writer. Initializes a new instance of the class. The configuration. Use a to configure mappings. When using a class map, no members are mapped by default. Only member specified in the mapping are used. The type of mapping class to use. Use a to configure mappings. When using a class map, no members are mapped by default. Only members specified in the mapping are used. The type of mapping class to use. Registers the class map. The class map to register. Unregisters the class map. The map type to unregister. Unregisters the class map. The map type to unregister. Unregisters all class maps. Generates a for the type. The type to generate the map for. The generate map. Generates a for the type. The type to generate for the map. The generate map. Provides a means of reading a CSV file forward-only by using CsvReader. Initializes a new instance of the class. The CSV. The DataTable representing the file schema. Represents errors that occur in CsvHelper. Gets the context. Initializes a new instance of the CsvHelperException class. Initializes a new instance of the CsvHelperException class. The message that describes the error. Initializes a new instance of the CsvHelperException class. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Initializes a new instance of the class. Initializes a new instance of the class with a specified error message. The context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Mode to use when parsing and writing. Uses RFC 4180 format (default). If a field contains a or , it is wrapped in s. If quoted field contains a , it is preceded by . Uses escapes. If a field contains a , , or , it is preceded by . Newline defaults to \n. Doesn't use quotes or escapes. This will ignore quoting and escape characters. This means a field cannot contain a , , or , as they cannot be escaped. Parses a CSV file. Initializes a new instance of the class. The reader. The culture. if set to true [leave open]. Initializes a new instance of the class. The reader. The configuration. if set to true [leave open]. Processes a field that complies with RFC4180. The start index of the field. The length of the field. The number of counted quotes. The processed field. Processes a field that does not comply with RFC4180. The start index of the field. The length of the field. The processed field. Processes an escaped field. The start index of the field. The length of the field. The processed field. Processes an non-escaped field. The start index of the field. The length of the field. The processed field. Disposes the object. Indicates if the object is being disposed. Processes a raw field based on configuration. This will remove quotes, remove escapes, and trim if configured to. The start of the field in the buffer. The length of the field in the buffer. The buffer that contains the field. Creates a new instance of ProcessedField. The start of the field in the buffer. The length of the field in the buffer. The buffer that contains the field. Starting position of the field. This is an offset from . Reads data that was parsed from . Creates a new CSV reader using the given . The reader. The culture. true to leave the open after the object is disposed, otherwise false. Creates a new CSV reader using the given and and as the default parser. The reader. The configuration. true to leave the open after the object is disposed, otherwise false. Creates a new CSV reader using the given . The used to parse the CSV file. Validates the header to be of the given type. The expected type of the header Validates the header to be of the given type. The expected type of the header. Validates the header to be of the given type. The mapped classes. The invalid headers. Gets the index of the field with the given name. The name of the field. The index of the field. Indicates if a TryGet is executed. The index of the field. Gets the index of the field with the given name. The names of the field. The index of the field. Indicates if a TryGet is executed. Indicates if the field is optional. The index of the field. Indicates if values can be read. The member map. True if values can be read. Indicates if values can be read. The member reference map. True if values can be read. Disposes the object. Indicates if the object is being disposed. Checks if the file has been read. Thrown when the file has not yet been read. Parses the named indexes. Thrown when no header record was found. Used to write CSV files. Initializes a new instance of the class. The writer. The culture. true to leave the open after the object is disposed, otherwise false. Initializes a new instance of the class. The writer. The configuration. true to leave the open after the object is disposed, otherwise false. Writes a dynamic header record. The header record to write. Thrown when no record is passed. Flushes the buffer. Asynchronously flushes the buffer. Indicates if values can be written. The member map. True if values can be written. Determines the type for the given record. The type of the record. The record to determine the type of. The System.Type for the record. Sanitizes the given field, before it is injected. The field to sanitize. The sanitized field. Thrown when an injection character is found in the field. Writes the given value to the buffer. The value to write. Disposes the object. Indicates if the object is being disposed. Function that gets called when bad data is found. The args. Information about the field that caused to be called. The full field unedited. The full row unedited. The context. Creates a new instance of BadDataFoundArgs. The full field unedited. The full row unedited. The context. Function that converts a string into an object. The type of the member. The args. The class object. args. The row. Creates a new instance of ConvertFromStringArgs. The row. Function that converts an object into a string. The type of the class. The args. The string. args. The value to convert. The value to convert. Creates a new instance of ConvertToStringArgs{TClass}. The value to convert. Function that chooses the constructor to use for constructor mapping. GetConstructor args. The class type. Creates a new instance of GetConstructorArgs. The class type. Function that resolves the delimiter from the given text. Returns null if no delimiter is found. GetDelimiter args. The text to resolve the delimiter from. The configuration. Creates an instance of GetDelimiterArgs. The text to resolve the delimiter from. The configuration. Function that gets the name to use for the property of the dynamic object. GetDynamicPropertyName args. The field index. The context. Creates a new instance of GetDynamicPropertyNameArgs. The field index. The context. Function that is called when a header validation check is ran. The default function will throw a if there is no header for a given member mapping. You can supply your own function to do other things like logging the issue instead of throwing an exception. HeaderValidated args. The invalid headers. The context. Creates a new instance of HeaderValidatedArgs. The invalid headers. The context. Function that is called when a missing field is found. The default function will throw a . You can supply your own function to do other things like logging the issue instead of throwing an exception. MissingFieldFound args. The header names. The index. The context. Creates a new instance of MissingFieldFoundArgs. The header names. The index. The context. Function that prepares the header field for matching against a member name. The header field and the member name are both ran through this function. You should do things like trimming, removing whitespace, removing underscores, and making casing changes to ignore case. PrepareHeaderForMatch args. The header. The field index. Creates a new instance of PrepareHeaderForMatchArgs. The header. The field index. Function that is called when a reading exception occurs. The default function will re-throw the given exception. If you want to ignore reading exceptions, you can supply your own function to do other things like logging the issue. ReadingExceptionOccurred args. The exception. Creates a new instance of ReadingExceptionOccurredArgs. The exception. Function that will return the prefix for a reference header. ReferenceHeaderPrefix args. The member type. The member name. Creates a new instance of ReferenceHeaderPrefixArgs. The member type. The member name. Function that is used to determine if a field should get quoted when writing. ShouldQuote args. The field. The field type. The row. Creates a new instance of ShouldQuoteArgs. The field. The field type. The row. Function that determines whether to skip the given record or not. ShouldSkipRecord args. The record. Creates a new instance of ShouldSkipRecordArgs. The row. Function that determines if constructor parameters should be used to create the class instead of the default constructor and members. ShouldUseConstructorParameters args. The parameter type. Creates a new instance of ShouldUseConstructorParametersArgs. The parameter type. Function that validates a field. The args. true if the field is valid, otherwise false. Function that gets the exception message when validation fails. The args. The exception message. Validate args. The field. The row. Creates a new instance of ValidateArgs. The field. The row. Creates dynamic records. Initializes a new instance. The reader. Creates a of type that will create a record of the given type using the current reader row. The record type. Creates a dynamic record of the current reader row. Write dynamic records. Initializes a new instance using the given writer. The writer. Creates a of type that will write the given record using the current writer row. The record type. The type for the record. Writes expando objects. Initializes a new instance using the given writer. The writer. Creates a of type that will write the given record using the current writer row. The record type. The record. Manages expression creation. Initializes a new instance using the given reader. The reader. Initializes a new instance using the given writer. The writer. Creates the constructor arguments used to create a type. The mapping to create the arguments for. The arguments that will be added to the mapping. Creates the member assignments for the given . The mapping to create the assignments for. The assignments that will be added to from the mapping. Creates an expression the represents getting the field for the given member and converting it to the member's type. The mapping for the member. Creates a member expression for the given member on the record. This will recursively traverse the mapping to find the member and create a safe member accessor for each level as it goes. The current member expression. The mapping to look for the member to map on. The member map to look for on the mapping. An Expression to access the given member. Creates an instance of the given type using , then assigns the given member assignments to that instance. The type of the record we're creating. The member assignments that will be assigned to the created instance. A representing the instance creation and assignments. Creates an expression that converts the field expression using a type converter. The mapping for the member. The field expression. Creates an expression that converts the field expression using a type converter. The mapping for the parameter. The field expression. Creates a default expression if field expression is empty. The mapping for the member. The field expression. Creates a default expression if field expression is empty. The mapping for the parameter. The field expression. Creates objects. Initializes a new instance using the given reader. Creates a of type that will create a record of the given type using the current reader row. The record type. Writes objects. Initializes a new instance using the given writer. The writer. Creates a of type that will write the given record using the current writer row. The record type. The type for the record. Creates primitive records. Initializes a new instance using the given reader. The reader. Creates a of type that will create a record of the given type using the current reader row. The record type. Writes primitives. Initializes a new instance using the given writer. The writer. Creates a of type that will write the given record using the current writer row. The record type. The type for the record. Base implementation for classes that create records. The reader. The expression manager. Initializes a new instance using the given reader. The reader. Gets the delegate to create a record for the given record type. If the delegate doesn't exist, one will be created and cached. The record type. Creates a of type that will create a record of the given type using the current reader row. The record type. Factory to create record creators. Initializes a new instance using the given reader. The reader. Creates a record creator for the given record type. The record type. Hydrates members of an existing record. Creates a new instance using the given reader. The reader. Hydrates members of the given record using the current reader row. The record type. The record. Gets the action delegate used to hydrate a custom class object's members with data from the reader. The record type. Creates the action delegate used to hydrate a record's members with data from the reader. The record type. Manages record manipulation. Initializes a new instance using the given reader. Initializes a new instance using the given writer. The writer. Gets a cached reader delegate for the given type. The type of the record. The type of the record. Hydrates the given record using the current reader row. The type of the record. The record to hydrate. Gets a cached writer delegate for the given type. The record type information. The type of record being written. Base implementation for classes that write records. Gets the writer. The expression manager. Initializes a new instance using the given writer. The writer. Gets the delegate to write the given record. If the delegate doesn't exist, one will be created and cached. The record type. The type for the record. Creates a of type that will write the given record using the current writer row. The record type. The record. Creates a of type that will write the given record using the current writer row. The type of the record. Combines the delegates into a single multicast delegate. This is needed because Silverlight doesn't have the Delegate.Combine( params Delegate[] ) overload. The delegates to combine. A multicast delegate combined from the given delegates. Factory to create record writers. Initializes a new instance using the given writer. The writer. Creates a new record writer for the given record. The type of the record. Creates CsvHelper classes. Creates an . The text reader to use for the csv parser. The configuration to use for the csv parser. The created parser. Creates an . The text reader to use for the csv parser. The culture information. The created parser. Creates an . The text reader to use for the csv reader. The configuration to use for the reader. The created reader. Creates an . The text reader to use for the csv reader. The culture information. The created reader. Creates an . The parser used to create the reader. The created reader. Creates an . The text writer to use for the csv writer. The configuration to use for the writer. The created writer. Creates an . The text writer to use for the csv writer. The culture information. The created writer. Access point for fluent interface to dynamically build a Type you will be making a class map for Options to further configure the Caches fields. Based on C#'s . Represents a user supplied field validation failure. Gets the field that failed validation. Initializes a new instance of the class. The reading context. The field that failed validation. Initializes a new instance of the class with a specified error message. The reading context. The field that failed validation. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The field that failed validation. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Represents a header validation failure. Gets the invalid headers. Initializes a new instance of the class. The reading context. The invalid headers. Initializes a new instance of the class with a specified error message. The reading context. The invalid headers. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The invalid headers. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Defines methods used to create CsvHelper classes. Creates an . The text reader to use for the csv parser. The configuration to use for the csv parser. The created parser. Creates an . The text reader to use for the csv parser. The culture information. The created parser. Creates an . The text reader to use for the csv reader. The configuration to use for the reader. The created reader. Creates an . The text reader to use for the csv reader. The culture information. The created reader. Creates an . The parser used to create the reader. The created reader. Creates an . The text writer to use for the csv writer. The configuration to use for the writer. The created writer. Creates an . The text writer to use for the csv writer. The culture information. The created writer. Provides a fluent interface for dynamically creating s Type of class to map Next available options Invalid header information. Header names mapped to a CSV field that couldn't be found. Header name index maped to a CSV field that couldn't be found. Defines the functionality of a class that creates objects from a given type. A value indicating if the resolver's returns false that an object will still be created using CsvHelper's object creation. True to fallback, otherwise false. Default value is true. A value indicating if the resolver is able to resolve the given type. True if the type can be resolved, otherwise false. The function that creates an object from a given type. Creates an object from the given type using the function. If is false, the object will be created using CsvHelper's default object creation. If is false, an exception is thrown. The type to create an instance from. The created object may not be the same type as the given type. Constructor arguments used to create the type. Creates an object from the given type using the function. If is false, the object will be created using CsvHelper's default object creation. If is false, an exception is thrown. The type to create an instance from. The created object may not be the same type as the given type. Constructor arguments used to create the type. Defines methods used the parse a CSV file. Gets the count of how many bytes have been read. needs to be enabled for this value to be populated. Gets the count of how many characters have been read. Gets the number of fields for the current row. Gets the field at the specified index for the current row. The index. The field. Gets the record for the current row. Note: It is much more efficient to only get the fields you need. If you need all fields, then use this. Gets the raw record for the current row. Gets the CSV row the parser is currently on. Gets the raw row the parser is currently on. The delimiter the parser is using. Gets the reading context. Gets the configuration. Reads a record from the CSV file. True if there are more records to read, otherwise false. Reads a record from the CSV file asynchronously. True if there are more records to read, otherwise false. Defines methods used to read parsed data from a CSV file. Reads the header record without reading the first row. True if there are more records, otherwise false. Advances the reader to the next record. This will not read headers. You need to call then for the headers to be read. True if there are more records, otherwise false. Advances the reader to the next record. This will not read headers. You need to call then for the headers to be read. True if there are more records, otherwise false. Gets all the records in the CSV file and converts each to T. The Read method should not be used when using this. The of the record. An of records. Gets all the records in the CSV file and converts each to T. The read method should not be used when using this. The of the record. The anonymous type definition to use for the records. An of records. Gets all the records in the CSV file and converts each to T. The Read method should not be used when using this. The of the record. An of records. Enumerates the records hydrating the given record instance with row data. The record instance is re-used and not cleared on each enumeration. This only works for streaming rows. If any methods are called on the projection that force the evaluation of the IEnumerable, such as ToList(), the entire list will contain the same instance of the record, which is the last row. The type of the record. The record to fill each enumeration. An of records. Gets all the records in the CSV file and converts each to T. The Read method should not be used when using this. The of the record. The cancellation token to stop the writing. An of records. Gets all the records in the CSV file and converts each to T. The read method should not be used when using this. The of the record. The anonymous type definition to use for the records. The cancellation token to stop the writing. An of records. Gets all the records in the CSV file and converts each to T. The Read method should not be used when using this. The of the record. The cancellation token to stop the writing. An of records. Enumerates the records hydrating the given record instance with row data. The record instance is re-used and not cleared on each enumeration. This only works for streaming rows. If any methods are called on the projection that force the evaluation of the IEnumerable, such as ToList(), the entire list will contain the same instance of the record, which is the last row. The type of the record. The record to fill each enumeration. /// The cancellation token to stop the writing. An of records. Defines methods used to read parsed data from a CSV file row. Gets the column count of the current row. This should match . Gets the field index the reader is currently on. Gets the header record. Gets the parser. Gets the reading context. Gets or sets the configuration. Gets the raw field at position (column) index. The zero based index of the field. The raw field. Gets the raw field at position (column) name. The named index of the field. The raw field. Gets the raw field at position (column) name. The named index of the field. The zero based index of the field. The raw field. Gets the raw field at position (column) index. The zero based index of the field. The raw field. Gets the raw field at position (column) name. The named index of the field. The raw field. Gets the raw field at position (column) name and the index instance of that field. The index is used when there are multiple columns with the same header name. The named index of the field. The zero based index of the instance of the field. The raw field. Gets the field converted to using the specified . The type of the field. The index of the field. The field converted to . Gets the field converted to using the specified . The type of the field. The named index of the field. The field converted to . Gets the field converted to using the specified . The type of the field. The named index of the field. The zero based index of the instance of the field. The field converted to . Gets the field converted to using the specified . The type of the field. The index of the field. The used to convert the field to . The field converted to . Gets the field converted to using the specified . The type of the field. The named index of the field. The used to convert the field to . The field converted to . Gets the field converted to using the specified . The type of the field. The named index of the field. The zero based index of the instance of the field. The used to convert the field to . The field converted to . Gets the field converted to T at position (column) index. The of the field. The zero based index of the field. The field converted to T. Gets the field converted to T at position (column) name. The of the field. The named index of the field. The field converted to T. Gets the field converted to T at position (column) name and the index instance of that field. The index is used when there are multiple columns with the same header name. The named index of the field. The zero based index of the instance of the field. Gets the field converted to T at position (column) index using the given . The of the field. The zero based index of the field. The used to convert the field to T. The field converted to T. Gets the field converted to T at position (column) name using the given . The of the field. The named index of the field. The used to convert the field to T. The field converted to T. Gets the field converted to T at position (column) name and the index instance of that field. The index is used when there are multiple columns with the same header name. The of the field. The named index of the field. The zero based index of the instance of the field. The used to convert the field to T. The field converted to T. Gets the field converted to T at position (column) index using the given . The of the field. The used to convert the field to T. The zero based index of the field. The field converted to T. Gets the field converted to T at position (column) name using the given . The of the field. The used to convert the field to T. The named index of the field. The field converted to T. Gets the field converted to T at position (column) name and the index instance of that field. The index is used when there are multiple columns with the same header name. The of the field. The used to convert the field to T. The named index of the field. The zero based index of the instance of the field. The field converted to T. Gets the field converted to T at position (column) index. The of the field. The zero based index of the field. The field converted to type T. A value indicating if the get was successful. Gets the field converted to T at position (column) name. The of the field. The named index of the field. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name and the index instance of that field. The index is used when there are multiple columns with the same header name. The of the field. The named index of the field. The zero based index of the instance of the field. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) index using the specified . The of the field. The zero based index of the field. The used to convert the field to T. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name using the specified . The of the field. The named index of the field. The used to convert the field to T. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name using the specified . The of the field. The named index of the field. The zero based index of the instance of the field. The used to convert the field to T. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) index. The of the field. The zero based index of the field. The field converted to type T. A value indicating if the get was successful. Gets the field converted to T at position (column) name. The of the field. The named index of the field. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name and the index instance of that field. The index is used when there are multiple columns with the same header name. The named index of the field. The zero based index of the instance of the field. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) index using the specified . The of the field. The zero based index of the field. The used to convert the field to T. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name using the specified . The of the field. The named index of the field. The used to convert the field to T. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name using the specified . The of the field. The named index of the field. The zero based index of the instance of the field. The used to convert the field to T. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) index using the specified . The of the field. The used to convert the field to T. The zero based index of the field. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name using the specified . The of the field. The used to convert the field to T. The named index of the field. The field converted to T. A value indicating if the get was successful. Gets the field converted to T at position (column) name using the specified . The of the field. The used to convert the field to T. The named index of the field. The zero based index of the instance of the field. The field converted to T. A value indicating if the get was successful. Gets the record converted into T. The of the record. The record converted to T. Get the record converted into T. The of the record. The anonymous type definition to use for the record. The record converted to T. Gets the record. The of the record. The record. Defines methods used to write to a CSV file. Flushes the internal buffer to the then flushes the . Flushes the internal buffer to the then flushes the . Ends writing of the current record and starts a new record. This flushes the buffer to the but does not flush the . Ends writing of the current record and starts a new record. This flushes the buffer to the but does not flush the . Writes the list of records to the CSV file. The records to write. Writes the list of records to the CSV file. Record type. The records to write. Writes the list of records to the CSV file. The records to write. The cancellation token to stop the writing. Writes the list of records to the CSV file. Record type. The records to write. The cancellation token to stop the writing. Writes the list of records to the CSV file. Record type. The records to write. The cancellation token to stop the writing. Defines methods used to write a CSV row. The header record. The current row. The current field index. Gets the writing context. Gets or sets the configuration. Writes a field that has already been converted to a from an . If the field is null, it won't get written. A type converter will always return a string, even if field is null. If the converter returns a null, it means that the converter has already written data, and the returned value should not be written. The converted field to write. The type of the field before it was converted into a string. Writes the field to the CSV file. The field may get quotes added to it. When all fields are written for a record, must be called to complete writing of the current record. The field to write. Writes the field to the CSV file. This will ignore any need to quote and ignore and just quote based on the shouldQuote parameter. When all fields are written for a record, must be called to complete writing of the current record. The field to write. True to quote the field, otherwise false. Writes the field to the CSV file. When all fields are written for a record, must be called to complete writing of the current record. The type of the field. The field to write. Writes the field to the CSV file. When all fields are written for a record, must be called to complete writing of the current record. The type of the field. The field to write. The converter used to convert the field into a string. Writes the field to the CSV file using the given . When all fields are written for a record, must be called to complete writing of the current record. The type of the field. The type of the converter. The field to write. Writes a comment. The comment to write. Writes the header record from the given members. The type of the record. Writes the header record from the given members. The type of the record. Writes the record to the CSV file. The type of the record. The record to write. Represents an error due to a field that is too large. Initializes a new instance of the class. The reading context. Initializes a new instance of the class with a specified error message. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Represents an error caused because a field is missing in the header while reading a CSV file. Initializes a new instance of the class. The reading context. Initializes a new instance of the class with a specified error message. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Efficiently creates instances of object types. Creates an instance of type T using the given arguments. The type to create an instance of. The constrcutor arguments. Creates an instance of the given type using the given arguments. The type to create an instance of. The constructor arguments. Creates objects from a given type. Gets or sets the current resolver. Use an instance of this instead if at all possible. A value indicating if the resolver's returns false that an object will still be created using CsvHelper's object creation. True to fallback, otherwise false. Default value is true. A function that returns a value indicating if the resolver is able to resolve the given type. True if the type can be resolved, otherwise false. The function that creates an object from a given type. Creates an instance of the object resolver using default values. Creates an instance of the object resolver using the given can create function and create function. A function that returns a value indicating if the resolver is able to resolve the given type. True if the type can be resolved, otherwise false. The function that creates an object from a given type. A value indicating if the resolver's returns false that an object will still be created using CsvHelper's object creation. True to fallback, otherwise false. Default value is true. Creates an object from the given type using the function. If is false, the object will be created using CsvHelper's default object creation. If is false, an exception is thrown. The type to create an instance from. The created object may not be the same type as the given type. Constructor arguments used to create the type. Creates an object from the given type using the function. If is false, the object will be created using CsvHelper's default object creation. If is false, an exception is thrown. The type to create an instance from. The created object may not be the same type as the given type. Constructor arguments used to create the type. Represents errors that occur while parsing a CSV file. Initializes a new instance of the class. The reading context. Initializes a new instance of the class with a specified error message. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Represents errors that occur while reading a CSV file. Initializes a new instance of the class. The reading context. Initializes a new instance of the class with a specified error message. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Type information for a record. The type of the record. A value indicating if the type was an object and GetType() was used over typeof. true if the type is an object, otherwise false. The hash code for the type. Initializes a new instance using the given and . The type of the record. A value indicating if the type was an object and GetType() was used over typeof. true if the type is an object, otherwise false. Extensions to help with reflection. Gets the type from the member. The member to get the type from. The type. Gets a member expression for the member. The member to get the expression for. The member expression. The member expression. Gets a value indicating if the given type is anonymous. True for anonymous, otherwise false. The type. Gets a value indicating if the given type has a parameterless constructor. True if it has a parameterless constructor, otherwise false. The type. Gets a value indicating if the given type has any constructors. The type. Gets the constructor that contains the most parameters. The type. Gets a value indicating if the type is a user defined struct. True if it is a user defined struct, otherwise false. The type. Gets a string representation of the constructor. The constructor. Gets a string representation of the parameter. The parameter. Common reflection tasks. Gets the from the type where the property was declared. The type the property belongs to. The property to search. Flags for how the property is retrieved. Gets the from the type where the field was declared. The type the field belongs to. The field to search. Flags for how the field is retrieved. Walk up the inheritance tree collecting properties. This will get a unique set of properties in the case where parents have the same property names as children. The to get properties for. The flags for getting the properties. If true, parent class properties that are hidden by `new` child properties will be overwritten. Walk up the inheritance tree collecting fields. This will get a unique set of fields in the case where parents have the same field names as children. The to get fields for. The flags for getting the fields. If true, parent class fields that are hidden by `new` child fields will be overwritten. Gets the property from the expression. The type of the model. The type of the property. The expression. The for the expression. Gets the member inheritance chain as a stack. The type of the model. The type of the property. The member expression. The inheritance chain for the given member expression as a stack. Converts an to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the object to a string. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts a to and from a . Creates a new ByteArrayConverter using the given . The options. Converts the object to a string. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Options for converting byte arrays. No options. Hexadecimal encoding. Base64 encoding. Use dashes in between hex values. Prefix hex number with 0x. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts a to and from a . Converts the object to a string. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Creates a new for the given . The type of the Enum. Throws an exception when used. This is here so that it's apparent that there is no support for type conversion. A custom converter will need to be created to have a field convert to and from an IEnumerable. Throws an exception. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Throws an exception. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts the object to a string. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts the object to a string. The object to convert to a string. The string representation of the object. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts an to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts objects to and from strings. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts the object to a string. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Produces for the specified Determines if the factory can create a type converter for the given type. The to be checked true if the factory can create the type, otherwise false. Creates a type converter for the given type and assigns it to the given out typeConverter parameter. The type to create the converter for. The type converter cache. The parameter to set the converter to. true if the converter should be added to the cache, otherwise false. Throws an exception when used. This is here so that it's apparent that there is no support for type conversion. A custom converter will need to be created to have a field convert to and from . Throws an exception. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Throws an exception. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts a to and from a . Gets the type of the nullable. The type of the nullable. Gets the underlying type of the nullable. The underlying type. Gets the type converter for the underlying type. The type converter. Creates a new for the given . The nullable type. The type converter factory. type is not a nullable type. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts the object to a string. The object to convert to a string. The string representation of the object. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the object to a string. The object to convert to a string. The for the current record. The for the member being written. The string representation of the object. Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts values to and from strings. Converts the string to a (T) value. The string to convert to an object. The for the current record. The for the member being created. The value created from the string. Converts the value to a string. The value to convert to a string. The for the current record. The for the member being written. The string representation of the value. Caches s for a given type. Initializes the class. Determines if there is a converter registered for the given type. The type to check. true if the converter is registered, otherwise false. Adds the . Factories are queried in order of being added and first factory that handles the type is used for creating the . Type converter factory Adds the for the given . The type the converter converts. The type converter that converts the type. Adds the for the given . The type the converter converts. The type converter that converts the type. Adds the for the given . The type the converter converts. The type converter that converts the type. Adds the given to all registered types. The type converter. Removes the for the given . The type to remove the converter for. Removes the for the given . The type to remove the converter for. Removes the ITypeConverterFactory. The ITypeConverterFactory to remove. Gets the converter for the given . The type to get the converter for. The for the given . Gets the converter for the given member. If an attribute is found on the member, that will be used, otherwise the cache will be used. The member to get the converter for. Gets the converter for the given . The type to get the converter for. The for the given . Represents errors that occur while reading a CSV file. The text used in ConvertFromString. The value used in ConvertToString. The type converter. The member map data used in ConvertFromString and ConvertToString. Initializes a new instance of the class. The type converter. The member map data. The text. The reading context. Initializes a new instance of the class. The type converter. The member map data. The value. The writing context. Initializes a new instance of the class with a specified error message. The type converter. The member map data. The text. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message. The type converter. The member map data. The value. The writing context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The type converter. The member map data. The text. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The type converter. The member map data. The value. The writing context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Options used when doing type conversion. Gets or sets the culture info. Gets or sets the date time style. Gets or sets the time span style. Gets or sets the number style. Gets or sets the string format. Gets or sets the . Ingore case when parsing enums. Default is false. Gets the list of values that can be used to represent a boolean of true. Gets the list of values that can be used to represent a boolean of false. Gets the list of values that can be used to represent a null value. Merges TypeConverterOptions by applying the values of sources in order on to each other. The first object is the source object. The sources that will be applied. The updated source object. Caches for a given type. Adds the for the given . The type the options are for. The options. Adds the for the given . The type the options are for. The options. Adds the given to all registered types. Removes the for the given type. The type to remove the options for. Removes the for the given type. The type to remove the options for. Get the for the given . The type the options are for. The options for the given type. Get the for the given . The type the options are for. The options for the given type. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the string to an object. The string to convert to an object. The for the current record. The for the member being created. The object created from the string. Converts a to and from a . Converts the to a . The string to convert to an object. The for the current record. The for the member being created. The created from the string. Represents a user supplied validation failure. Initializes a new instance of the class. The reading context. Initializes a new instance of the class with a specified error message. The reading context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The reading context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Represents errors that occur while writing a CSV file. Initializes a new instance of the class. The writing context. Initializes a new instance of the class with a specified error message. The writing context. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The writing context. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.