Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reversing left and right objects in call to Diff changes the diff.PropertyType returned (but not Property) #30

Open
malclear opened this issue Jun 19, 2024 · 1 comment

Comments

@malclear
Copy link

malclear commented Jun 19, 2024

I diff'ed two instance of Order where a new OrderDetail instance had been added to the array of one: changedOrder. If the originalOrder was on the left in the function call, then the resulting diff.PropertyType evaluated to "System.Collections.Generic.List'1[Models.OrderDetail]", as expected. --> However, ifchangedOrder was on the left, then the diff.Property type evaluated to "Models.OrderDetail".

Note that in both cases, the diff.Property value was "OrderDetails" (with an 's'), which is the collection variable's name.

image
image

@malclear
Copy link
Author

If you tell me the intended functionality, I might be able to open a PR for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant