Breaking changes

CsvHelper

CsvReaderclass4 breaking4 removed

Removed

GetEmtpyStringMethod()IsRecordEmpty()IsRecordEmpty(bool)ShouldSkipRecord()
IReaderRowinterface1 breaking1 removed

Removed

IsRecordEmpty()

CsvHelper.Configuration

ClassMapclass3 breaking3 changed

AutoMap(Configuration)Breaking

The parameters changed from (AutoMapOptions) to (Configuration).

Before
public virtual void AutoMap(AutoMapOptions options)
After
public virtual void AutoMap(Configuration configuration)

AutoMapConstructorParameters(ClassMap, Configuration, LinkedList<Type>, int)Breaking

The parameters changed from (ClassMap, AutoMapOptions, LinkedList<Type>, int) to (ClassMap, Configuration, LinkedList<Type>, int).

Before
protected virtual void AutoMapConstructorParameters(ClassMap map, AutoMapOptions options, LinkedList<Type> mapParents, int indexStart = 0)
After
protected virtual void AutoMapConstructorParameters(ClassMap map, Configuration configuration, LinkedList<Type> mapParents, int indexStart = 0)

AutoMapMembers(ClassMap, Configuration, LinkedList<Type>, int)Breaking

The parameters changed from (ClassMap, AutoMapOptions, LinkedList<Type>, int) to (ClassMap, Configuration, LinkedList<Type>, int).

Before
protected virtual void AutoMapMembers(ClassMap map, AutoMapOptions options, LinkedList<Type> mapParents, int indexStart = 0)
After
protected virtual void AutoMapMembers(ClassMap map, Configuration configuration, LinkedList<Type> mapParents, int indexStart = 0)
ClassMapCollectionclass1 breaking1 changed

ClassMapCollection(Configuration)Breaking

The parameters changed from () to (Configuration).

Before
public ClassMapCollection()
After
public ClassMapCollection(Configuration configuration)
Configurationclass7 breaking6 removed1 changed

ReadingExceptionCallbackBreaking

The type changed from Action<CsvHelperException, IReader> to Action<CsvHelperException>.

Before
public virtual Action<CsvHelperException, IReader> ReadingExceptionCallback { get; set; }
After
public virtual Action<CsvHelperException> ReadingExceptionCallback { get; set; }

Removed

BadDataCallbackIgnoreReadingExceptionsSkipEmptyRecordsThrowOnBadDataThrowOnBadHeaderThrowOnMissingField
IParserConfigurationinterface2 breaking2 removed

Removed

BadDataCallbackThrowOnBadData
IReaderConfigurationinterface5 breaking4 removed1 changed

ReadingExceptionCallbackBreaking

The type changed from Action<CsvHelperException, IReader> to Action<CsvHelperException>.

Before
Action<CsvHelperException, IReader> ReadingExceptionCallback { get; set; }
After
Action<CsvHelperException> ReadingExceptionCallback { get; set; }

Removed

IgnoreReadingExceptionsSkipEmptyRecordsThrowOnBadHeaderThrowOnMissingField

Removed types (1)

AutoMapOptions

CsvHelper.TypeConversion

NullableConverterclass1 breaking1 changed

NullableConverter(Type, TypeConverterFactory)Breaking

The parameters changed from (Type) to (Type, TypeConverterFactory).

Before
public NullableConverter(Type type)
After
public NullableConverter(Type type, TypeConverterFactory typeConverterFactory)
TypeConverterFactoryclass1 breaking1 removed

Removed

Current