Skip to content

Commit f1a7907

Browse files
committed
cosmetic
1 parent 9ddc5b4 commit f1a7907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Flattening.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ destination.Name.ShouldBe("name");
145145
destination.Description.ShouldBe("description");
146146
destination.Title.ShouldBe("title");
147147
```
148-
So this allows you to reuse the configuration in the existing maps for the child types `InnerSource` and `OtherInnerSource` when mapping the parent types `Source` and `Destination`. It works in a similar way to [mapping inheritance](Mapping-inheritance.html), but it uses composition, not inheritance.
148+
So this allows you to reuse the configuration in the existing map for the child types `InnerSource` and `OtherInnerSource` when mapping the parent types `Source` and `Destination`. It works in a similar way to [mapping inheritance](Mapping-inheritance.html), but it uses composition, not inheritance.
149149

150150
The order of the parameters in the `IncludeMembers` call is relevant. When mapping a destination member, the first match wins, starting with the source object itself and then with the included child objects in the order you specified. So in the example above, `Name` is mapped from the source object itself and `Description` from `InnerSource` because it's the first match.
151151

152-
Note that this matching is static, it happens at configuration time, not at `Map` time, and the runtime types of the child objects are not considered.
152+
Note that this matching is static, it happens at configuration time, not at `Map` time, so the runtime types of the child objects are not considered.
153153

154154
IncludeMembers integrates with `ReverseMap`. An included member will be reversed to
155155
```c#

0 commit comments

Comments
 (0)