Commit 3a16de4
committed
Move
In preparation for centralizing around `ItemConfiguration`, we need to move the `Validate()` method from `PropertyConfiguration` to `MemberAccessor`.
This is because it relies on access to the `MemberAccessor`'s `GetValue()` method. Currently, `PropertyConfiguration` has access to that via its `MemberAccessor` property. But once `ItemConfiguration` becomes a property off of `ItemMetadata`, it doesn't make sense to maintain the `ItemMetadata` or `MemberAccessor` fields off of `ItemConfiguration` or `PropertyConfiguration`.
Instead, callers will simply pass references to `ItemMetadata` (which will include `ItemConfiguration`) instead of `ItemConfiguration` (which previously included `ItemMetadata`). Basically, we're flipping the relationship between these.
Further, this can't be added to the `ItemMetadata` base class since it requires access to the `GetValue()` method on the derived `MemberAccessor` class. That's the same reason it was previously added to the `PropertyConfiguration`, not the `ItemConfiguration` class.Validate() method to MemberAccessor
1 parent 74cb817 commit 3a16de4
4 files changed
Lines changed: 17 additions & 17 deletions
File tree
- OnTopic
- Internal/Reflection
- Mapping
- Internal
- Reverse
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
221 | 236 | | |
222 | 237 | | |
223 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 59 | | |
75 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| |||
0 commit comments