summaryrefslogtreecommitdiff
path: root/ThirdParty/CsvHelper-master/src/CsvHelper.Website/input/migration/v30/index.md
blob: 2c324f5501bae6707ab57750bb6d1d1fec8dc101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Migrating from version 29 to 30

## BadDataException constructor

```cs
// 29
throw new BadDataException(context);

// 30
throw new BadDataException(field, rawRecord, context);
```

## IParserConfiguration

Any class that implements `IParserConfiguration` will need to add property `double MaxFixFieldSize { get; }`.
Any class that implements `IParserConfiguration` will need to add property `bool LeaveOpen { get; }`.

## IWriterConfiguration

ixFieldSize { get; }`.
Any class that implements `IWriterConfiguration` will need to add property `bool LeaveO

## ValidateArgs

```cs
// 29
var args = new ValidateArgs(field);

// 30
var args = new ValidateArgs(field, row);
```