You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var parser = serviceProvider.GetService<IParser>();
65
65
```
66
-
#### Step 2. Define the `IFileLine` implementation to parse a file record into a strongly typed line class.
66
+
#### <ins>Step 2<ins>. Define the `IFileLine` implementation to parse a file record into a strongly typed line class.
67
67
Consider the file below. To parse a row into a C# class, you need to implement `IFileLine` interface. By doing this you create a strongly typed line representation for each row in the file.
68
68
```
69
69
|Mr|Jack Marias|Male|London|
@@ -124,7 +124,7 @@ ii. By providing the list of delimiter separated string values to parse method.
124
124
125
125
var records = new Parser('|').Parse<Employee>(lines);
126
126
```
127
-
#### Step 3. Advanced Parsing of data using nested types in the FileLine class.
127
+
#### <ins>Step 3<ins>. Advanced Parsing of data using nested types in the FileLine class.
128
128
You could implement advance parsing of data by implementing `TypeConverter` class. Suppose we have to change the Name string property in Employee class above to a `NameType` property shown below.
0 commit comments