Skip to content

Commit c803a24

Browse files
authored
Update README.md
1 parent 10a9b7d commit c803a24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Install the latest version of Parsley.Net nuget package with command below.
3333
NuGet\Install-Package Parsley.Net
3434
```
3535
### ii. Implementation: Using Parsley.Net
36-
#### Step 1. Initialise and use Parser class.
36+
#### <ins>Step 1<ins>. Initialise and use Parser class.
3737
`Parser` is an implementation of `IParser` interface that provides methods for
3838
- parsing content of a file by specifying the file path
3939
- parsing an array of delimiter separated strings
@@ -63,7 +63,7 @@ services.UseParsley('|');
6363
serviceProvider = services.BuildServiceProvider();
6464
var parser = serviceProvider.GetService<IParser>();
6565
```
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.
6767
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.
6868
```
6969
|Mr|Jack Marias|Male|London|
@@ -124,7 +124,7 @@ ii. By providing the list of delimiter separated string values to parse method.
124124
125125
var records = new Parser('|').Parse<Employee>(lines);
126126
```
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.
128128
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.
129129
```
130130
public class Employee : IFileLine

0 commit comments

Comments
 (0)