Skip to content

Improve operators TOC for null-conditional operators #4784

@pkulikov

Description

@pkulikov

The operators overview page has the following comment:

Comment not for this page, but for the menu on the left, below "C# Operators" ([] Operator, () Operator, . Operator, etc.) : the 2 operators ?. and ?[ are not shown. I spent 15 minutes to find them in the last chapter "Null-conditional Operators". That would be nice to add 2 pages "?. Operator" and "?[ Operator" (link them to Null-conditional Operators if you want).

I've got another request about the Microsoft Help Viewer, I don't know where to post it. I have installed it and use it from Visual Studio 2017. In the index, every operator is there, except ?. and ?[. Moreover, there is no entry for the ? suffix of nullable types. That would be nice to add a "? suffix of nullable types" entry, which links to the "nullable types [C#]" page.

I think the first point is a good observation and easy to fix by updating TOC. I suggest to add two entries to the TOC: "?. Operator" and "?[ Operator" - at the same level as other operators. And keep "Null-conditional Operators" entry, as folks might not know the name of the operators. If that's fine, where in TOC to include those two operators? Any ordering there? I would put it next to "?: Operator" just because they all start with a question mark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions