Skip to content

Commit

Permalink
Fix typo in README.md
Browse files Browse the repository at this point in the history
Fixes #85
  • Loading branch information
hughbe authored Jul 15, 2023
1 parent ededd87 commit fce7526
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public enum MaritalStatus
public class President
{
public string Name { get; set; }
public MaritalStatus MarritalStatus { get; set; }
public MaritalStatus MaritalStatus { get; set; }
public int NumberOfChildren { get; set; }
public float ApprovalRating { get; set; }
public DateTime DateOfBirth { get; set; }
Expand All @@ -167,7 +167,7 @@ public class PresidentClassMap : ExcelClassMap<President>
Map(president => president.Name);

// Map invalid unknown value to a known value.
Map(president => president.MarritalStatus)
Map(president => president.MaritalStatus)
.WithColumnName("Marrital Status")
.WithMapping(new Dictionary<string, MaritalStatus>
{
Expand Down Expand Up @@ -240,7 +240,7 @@ public enum MaritalStatus
public class President
{
public string Name { get; set; }
public MaritalStatus MarritalStatus { get; set; }
public MaritalStatus MaritalStatus { get; set; }
public int? NumberOfChildren { get; set; }
public DateTime? DateOfBirth { get; set; }
}
Expand All @@ -251,7 +251,7 @@ public class PresidentClassMap : ExcelClassMap<President>
{
Map(president => president.Name);

Map(president => president.MarritalStatus)
Map(president => president.MaritalStatus)
.WithColumnName("Marrital Status")
.WithEmptyFallback(MaritalStatus.Unknown)
.WithInvalidFallback(MaritalStatus.Invalid);
Expand Down Expand Up @@ -312,7 +312,7 @@ public enum MaritalStatus
public class President
{
public string Name { get; set; }
public MaritalStatus MarritalStatus { get; set; }
public MaritalStatus MaritalStatus { get; set; }
}

public class PresidentClassMap : ExcelClassMap<President>
Expand All @@ -321,7 +321,7 @@ public class PresidentClassMap : ExcelClassMap<President>
{
Map(president => president.Name);

Map(president => president.MarritalStatus, ignoreCase: true)
Map(president => president.MaritalStatus, ignoreCase: true)
.WithColumnName("Marrital Status")
.WithEmptyFallback(MaritalStatus.Unknown)
.WithInvalidFallback(MaritalStatus.Invalid);
Expand Down

0 comments on commit fce7526

Please # to comment.