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

Add example annotation to 3 new examples #1025

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

RexJaeschke
Copy link
Contributor

@RexJaeschke RexJaeschke commented Nov 30, 2023

@BillWagner, I changed the 2 examples in patterns.md, so they don't need any non-standard supporting types/methods. I believe I have preserved your original intent.

BTW, should you want to add annotations to examples in the future, add the following line right before the line starting the source code, and then replace/delete options as you need (according to https://github.com/dotnet/csharpstandard/blob/standard-v7/tools/ExampleExtractor/ExtractorAndTesterUsersGuide.md):

> <!-- Example: {template:"xxx", name:"xxx", replaceEllipsis:true, customEllipsisReplacements: ["xxx", "xxx"], expectedErrors:["CSxxx"], expectedWarnings:["CSxxx"], ignoredWarnings:["CSxxx"], inferOutput:true, expectedOutput:["xxx"], ignoreOutput:true, expectedException:"xxx", additionalFiles:["xxx.cs"]} -->

The leading > is only needed if the example is inside an Example or Note.

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 @RexJaeschke

This looks good to me. I'll :shipit: now.

@BillWagner BillWagner merged commit 4d398ce into dotnet:draft-v8 Nov 30, 2023
7 checks passed
@BillWagner BillWagner deleted the Add-example-annotation branch November 30, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants