Skip to content

Remove F# examples where no API signature in F##12571

Open
gewarren wants to merge 1 commit intodotnet:mainfrom
gewarren:fsharp-egs
Open

Remove F# examples where no API signature in F##12571
gewarren wants to merge 1 commit intodotnet:mainfrom
gewarren:fsharp-egs

Conversation

@gewarren
Copy link
Copy Markdown
Contributor

Fixes #12542

Copilot AI review requested due to automatic review settings April 28, 2026 21:01
@gewarren gewarren requested review from a team as code owners April 28, 2026 21:01
@github-actions github-actions Bot added the area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. label Apr 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Comment thread xml/System/FlagsAttribute.xml
@gewarren gewarren enabled auto-merge (squash) April 28, 2026 21:23
@gewarren gewarren requested review from adegeo and davidle-ms April 28, 2026 21:23
@davidle-ms
Copy link
Copy Markdown

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

numeric type mismatch

4 participants