dotnet / dotnet/csharpstandard

Finally not always be executed in Linux platform

Open
#539 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

[Enter feedback here]
The finally block is not always be executed in Linux platform.
See the issue opens for https://github.com/dotnet/runtime/issues/67214, when there is an exception thrown in catch block, the finally statement was skipped when running in linux.

This is either a dot.net runtime issue , or a documentation issue that need to be fixed.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: c1202a39-a94a-c97d-ffb8-2d25a13245f4
* Version Independent ID: 4092d5d3-f69a-cf78-3164-0c423947d2eb
* Content: [How to: Use Finally Blocks](https://docs.microsoft.com/en-us/dotnet/standard/exceptions/how-to-use-finally-blocks)
* Content Source: [docs/standard/exceptions/how-to-use-finally-blocks.md](https://github.com/dotnet/docs/blob/main/docs/standard/exceptions/how-to-use-finally-blocks.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @tdykstra
* Microsoft Alias: **tdykstra**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.