Skip to content

Show real case scenario examples for many common cases in Roslyn APIs #35924

@Rekkonnect

Description

@Rekkonnect

Inspired by lately finding out that SymbolDisplay.ToDisplayString(ISymbol, SymbolDisplayFormat?) displays an INamespaceSymbol representing the namespace "A.B.C.D" as A.B.C.D, not just its name which is D.

There are many more examples of docs that briefly describe the abstractions and how they are functioning, without clarifying the behavior in real and common scenarios, without having to have first experimented by manually running the theoretical code.

The common motivation for this is the confidence in writing that piece of code for the Roslyn components in applications, and not fearing that an API might not find suit, resulting in reinventing the wheel even for the most basic needs.

Below is the generated section for the initial docs page that inspired this.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

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