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

Fix Extensions.Find<T> #168

Merged
merged 1 commit into from
Oct 30, 2020
Merged

Fix Extensions.Find<T> #168

merged 1 commit into from
Oct 30, 2020

Conversation

eerhardt
Copy link
Member

Extensions.Find incorrectly compares the kvp.Key to the T type. It is using an is operator, which is a cast check. This is incorrect because the Key is always a System.Type. Instead it should be comparing the Key to typeof(T).

cc @xinchen10

Extensions.Find incorrectly compares the kvp.Key to the T type. It is using an `is` operator, which is a cast check. This is incorrect because the Key is always a System.Type. Instead it should be comparing the Key to typeof(T).
@xinchen10 xinchen10 merged commit de7083e into Azure:master Oct 30, 2020
@eerhardt eerhardt deleted the FixFind branch October 30, 2020 22:24
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

Successfully merging this pull request may close these issues.

2 participants