Closed KvanTTT closed 9 years ago
Initially it was, but when we needed map to ObservableRangeCollenction it had rewritten. See MappingExtension.g.cs:L67 But this generated code, what difference would it look like? Object initializers are just syntactic sugar, in your compiled assembly IL they translate into separate statements, check it on ILSpy.
Is it possible to map ObservableRangeCollenction by usual way and other objects by object initializer? But you are right: it is not important feature.
ObservableRangeCollenction is readonly in each ViewModels in our projects.
I mean use the following code:
instead of:
It can be additional setting in MapHelper.tt