AddNullMemberInitializers
should check if a member is assigned before instantiating with ??= new()
#640
Labels
bug
Something isn't working
Is your feature request related to a problem? Please describe.
When mapping paths,
MapProperty
initializes parents of members using??= new()
to prevent exceptions. This doesn't check if the member has already been set resulting in redundant code.Describe the solution you'd like
AddNullMemberInitializers
should check if the member is already set before creating aMemberNullAssignmentInitializerMapping
.The text was updated successfully, but these errors were encountered: