Referring to a generic type of a generic type in C# XML documentation?

后端 未结 5 1573
情歌与酒
情歌与酒 2021-02-06 21:31

Writing some XML documentation for a predicate helper class. But I can\'t figure out I can refer to an Expression> without getting a synta

5条回答
  •  一生所求
    2021-02-06 22:15

    What exactly would you like it to link to?

    There's no such thing in the documentation as a Expression>, so obviously a link to that would not work.

    You can link to Expression because that exists.

    As for what works or not, neither of the following works in Visual Studio 2008 / .NET 3.5 for me:

    /// .
    /// .
    

    But this works:

    /// .
    

    so apparently the generic type parameter doesn't have to the same as the one in the declaration.

提交回复
热议问题