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

ConfigXmlReader is an IDisposable; Dispose it #103163

Merged

Conversation

omajid
Copy link
Member

@omajid omajid commented Jun 7, 2024

This was flagged by a static analysis tool. Is this necessary? Is this safe to do?

This was flagged by a static analysis tool. Is this necessary? Is this
safe to do?
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 7, 2024
Copy link
Contributor

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

@stephentoub
Copy link
Member

I believe it's safe to do, but as with your previous PR, doesn't actually improve anything other than silencing whatever static analysis tool is being used: this reader is being constructed from a string, and there won't be any resources that need to be cleaned up.

@stephentoub stephentoub merged commit 778b3ed into dotnet:main Jun 13, 2024
80 of 83 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Configuration community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants