Skip to content

<see> in C# Guide doesn't mention inner text, as shown in F# guide #21885

Closed

Description

@kevinoid

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.

Activity

  1. BillWagner commented on Dec 9, 2020

    @BillWagner
    Member

    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.

  2. kevinoid commented on Dec 9, 2020

    @kevinoid
    ContributorAuthor

    Sounds good to me. Thanks @BillWagner!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions