System.Configuration.GetSection(String) returns description is incorrect #10754
Labels
area-System.Configuration
Pri3
Indicates issues/PRs that are low priority
untriaged
New issue has not been triaged by the area owner
Describe the issue or suggestion
The current returns description of
GetSection()
indicates that it returnsnull
. That is incorrect.The return type is not marked as nullable in the source code:
https://github.com/dotnet/runtime/blob/main/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Configuration.cs#L165
public ConfigurationSection GetSection(string sectionName)
In the ASP.NET Core docs it correctly states "GetSection never returns null":
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/configuration/index.md?plain=1#L705
The correction should be made here:
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Configuration/Configuration.xml#L356
The text was updated successfully, but these errors were encountered: