Skip to content

Conversation

Roshni-Gandhi
Copy link
Contributor

@Roshni-Gandhi Roshni-Gandhi commented Sep 10, 2024

#42112 updated yield.md document to mention its not allowed inside try, catch and finally blocks

#42112

Fixes #42112


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/statements/yield.md docs/csharp/language-reference/statements/yield

dotnet#42112 updated yield.md document to mention its not allowed inside try, catch and finally blocks

dotnet#42112
@Roshni-Gandhi Roshni-Gandhi requested review from BillWagner and a team as code owners September 10, 2024 18:56
@dotnet-bot dotnet-bot added this to the September 2024 milestone Sep 10, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Sep 10, 2024
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Roshni-Gandhi

This looks great and I'll :shipit: now.

@BillWagner BillWagner enabled auto-merge (squash) September 11, 2024 13:18
@BillWagner BillWagner merged commit 5c312c8 into dotnet:main Sep 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc lang-reference/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yield return isn't allowed in try or catch blocks.
3 participants