Skip to content

Conversation

michalczerwinski
Copy link
Contributor

@michalczerwinski michalczerwinski commented Apr 30, 2021

This is removing some defencive ToList() which are not needed: .NET Core 3.0 added the possibility to safely remove entries from Dictionary while enumerating (dotnet/coreclr#18854).

This is for #18598
No new tests were added as all modified cases are already covered.

michalczerwinski and others added 2 commits April 27, 2021 21:07
-NavigationExpandingExpressionVisitor: ToList() is not needed anymore, as we remove from IncludeTreeNode which inherites from Dictionary
- TableSharingConcurrencyTokenConvention: no need for deferring removal from collection and ToList() as entityTypeDictionary is Dictionary
@ErikEJ
Copy link
Contributor

ErikEJ commented Apr 30, 2021

Assume you mean ToList, not ToString ?

@michalczerwinski
Copy link
Contributor Author

michalczerwinski commented Apr 30, 2021

Assume you mean ToList, not ToString ?

Yes, my bad. ToList()

@AndriySvyryd AndriySvyryd merged commit 470e45c into dotnet:main May 4, 2021
@AndriySvyryd
Copy link
Member

Thanks for your contribution!

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

Successfully merging this pull request may close these issues.

4 participants