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

Small ConfigurationBinder Cleanup #79042

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

eerhardt
Copy link
Member

Now that we know dictionaryType is either the built-in IDictionary or Dictionary types, we don't need to check if the indexer property is missing or if it is not writeable. Removing unnecessary checks.

Also removing a few nullable suppressions and adding a Debug.Assert instead.

cc @SteveDunn

Now that we know dictionaryType is either the built-in IDictionary or Dictionary types, we don't need to check if the indexer property is missing or if it is not writeable. Removing unnecessary checks.

Also removing a few nullable suppressions and adding a Debug.Assert instead.
@ghost
Copy link

ghost commented Nov 30, 2022

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

Issue Details

Now that we know dictionaryType is either the built-in IDictionary or Dictionary types, we don't need to check if the indexer property is missing or if it is not writeable. Removing unnecessary checks.

Also removing a few nullable suppressions and adding a Debug.Assert instead.

cc @SteveDunn

Author: eerhardt
Assignees: eerhardt
Labels:

area-Extensions-Configuration

Milestone: -

@eerhardt
Copy link
Member Author

eerhardt commented Dec 5, 2022

Failure is #78778.

@eerhardt eerhardt merged commit f0aedc7 into dotnet:main Dec 5, 2022
@eerhardt eerhardt deleted the ConfigBinderCleanup branch December 5, 2022 16:35
@ghost ghost locked as resolved and limited conversation to collaborators Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants