-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Group 3] Enable nullable annotations for Microsoft.Extensions.Configuration
#57414
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @maryamariyan, @safern Issue DetailsNotes:
|
Microsoft.Extensions.Configuration
# Conflicts: # src/libraries/Microsoft.Extensions.Configuration.Abstractions/ref/Microsoft.Extensions.Configuration.Abstractions.csproj # src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/Microsoft.Extensions.Configuration.Abstractions.csproj # src/libraries/Microsoft.Extensions.Configuration/ref/Microsoft.Extensions.Configuration.csproj # src/libraries/Microsoft.Extensions.Configuration/src/Microsoft.Extensions.Configuration.csproj
...tensions.Options.ConfigurationExtensions/tests/OptionsBuidlerConfigurationExtensionsTests.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/ref/Microsoft.Extensions.Configuration.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/src/ConfigurationKeyComparer.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/src/StreamConfigurationProvider.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/src/StreamConfigurationSource.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/src/StreamConfigurationProvider.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/ref/Microsoft.Extensions.Configuration.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/src/ChainedConfigurationSource.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration/ref/Microsoft.Extensions.Configuration.cs
Show resolved
Hide resolved
This reverts commit 4813528.
src/libraries/Microsoft.Extensions.Configuration/src/ConfigurationManager.cs
Outdated
Show resolved
Hide resolved
{ | ||
var results = new List<string>(); | ||
|
||
if (parentPath is null) | ||
{ | ||
foreach (KeyValuePair<string, string> kv in Data) | ||
foreach (KeyValuePair<string, string?> kv in Data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: not related to this PR but it seems like we could just iterate over Data.Keys
rather than KVP
? We are just using the keys on these two for loops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. @safern - any additional feedback?
Thanks for the contribution here, @maxkoshevoi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Merging as the |
Related to #43605, #54012
Annotated according to:
Microsoft.Extensions.Configuration.Abstractions
#57401