Remove F# examples where no API signature in F##12571
Open
gewarren wants to merge 1 commit intodotnet:mainfrom
Open
Remove F# examples where no API signature in F##12571gewarren wants to merge 1 commit intodotnet:mainfrom
gewarren wants to merge 1 commit intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the .NET API reference XML docs to remove F# snippet includes in example blocks for members that don’t have an F# API signature, keeping the displayed examples aligned with the available language signatures on the rendered docs pages.
Changes:
- Removed
:::code language="fsharp"directives from multiple constructor/member example blocks where an F# signature isn’t present. - Kept C# and VB examples intact while trimming F# in the affected locations.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| xml/System/Random.xml | Removes F# snippet include from the parameterless constructor example. |
| xml/System/Lazy`1.xml | Removes F# snippet includes from parameterless constructor example blocks. |
| xml/System/FlagsAttribute.xml | Removes F# snippet includes from constructor examples. |
| xml/System/Exception.xml | Removes F# snippet include from parameterless constructor example. |
| xml/System/Attribute.xml | Removes F# snippet include from the protected constructor example. |
| xml/System/ArrayTypeMismatchException.xml | Removes F# snippet include from parameterless constructor example. |
| xml/System.Timers/Timer.xml | Removes F# snippet include from parameterless constructor example. |
| xml/System.Text/StringBuilder.xml | Removes F# snippet include from parameterless constructor example. |
| xml/System.Security.Cryptography/Aes.xml | Removes F# snippet include from the protected constructor example block. |
| xml/System.Net.NetworkInformation/PingOptions.xml | Removes F# snippet include from parameterless constructor example block. |
| xml/System.Collections.Generic/Stack`1.xml | Removes F# snippet include from parameterless constructor example block. |
| xml/System.Collections.Generic/SortedList`2.xml | Removes F# snippet include from parameterless constructor example block. |
| xml/System.Collections.Generic/List`1.xml | Removes F# snippet include from parameterless constructor example block. |
| xml/System.Collections.Generic/HashSet`1.xml | Removes F# snippet include from parameterless constructor example block. |
| xml/System.Collections.Generic/Dictionary`2.xml | Removes F# snippet include from parameterless constructor example block. |
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12542