Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kofifus authored Mar 4, 2020
1 parent 502fd35 commit 2adf2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Adds a `With` method to immutable objects that constructs a new 'mutation' of th
# Simple Usage

Define an immutable class and mark it as such by inheriting interface Immutable:

```
public class Employee : IImmutable {
public string FirstName { get; }
Expand All @@ -14,6 +13,7 @@ public class Employee : IImmutable {
public Employee(string firstName, string lastName) { FirstName = firstName; LastName = lastName; }
}
```
Note that parameter names in our constructor *must* match fields names except for the first letter which can have a different case (ie `firstName` for field `FirstName`)

Apply modification:

Expand Down

0 comments on commit 2adf2ce

Please sign in to comment.