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

Use try/finally #56288

Closed
wants to merge 1 commit into from
Closed

Use try/finally #56288

wants to merge 1 commit into from

Conversation

xPaw
Copy link

@xPaw xPaw commented Jul 26, 2021

No description provided.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jul 26, 2021
@ghost
Copy link

ghost commented Jul 26, 2021

Tagging subscribers to this area: @eiriktsarpalis
See info in area-owners.md if you want to be subscribed.

Issue Details
Author: xPaw
Assignees: -
Labels:

area-System.Collections, community-contribution

Milestone: -

@huoyaoyuan
Copy link
Member

The semantics changes here. Previously the code will only run when exception happened. finally will run for both success and failure.

@xPaw
Copy link
Author

xPaw commented Jul 26, 2021

Oh oops my bad, that completely went over my head.

@xPaw xPaw closed this Jul 26, 2021
@xPaw xPaw deleted the patch-1 branch July 26, 2021 09:12
@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Collections 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