You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<see> in C# Guide doesn't mention inner text, as shown in F# guide #21885
In Document your code with XML comments in the F# Guide, <see> is documented as <see cref="reference">text</see> where "The text is the text shown in the link."
<see> in the C# guide does not document whether inner text is allowed or what behavior it implies.
Is <see> inner text permitted in both C# and F#? (I tested that <see> inner text is preserved in the XML documentation file generated from C#.) In either case, perhaps the C# Guide should be updated to mention it.
Thanks for considering,
Kevin
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 7c9f2f59-0dec-c531-b19a-a2109ea0f973
Version Independent ID: 74c6022c-8661-216e-4f48-e5f08f432f85
This is a tricky one for us to cover well in the C# docs. The C# compiler respects any XML tags you use. As you say, it will preserve any tags and any text between opening and closing tags.
How those tags are processed when creating human readable documents is up to the tool: docfx, sandcastle, etc. We're working on a plan to provide more details for different document generating tools.
Activity
BillWagner commentedon Dec 9, 2020
Thanks for writing this @kevinoid
This is a tricky one for us to cover well in the C# docs. The C# compiler respects any XML tags you use. As you say, it will preserve any tags and any text between opening and closing tags.
How those tags are processed when creating human readable documents is up to the tool: docfx, sandcastle, etc. We're working on a plan to provide more details for different document generating tools.
I'll add this to our backlog.
kevinoid commentedon Dec 9, 2020
Sounds good to me. Thanks @BillWagner!