Using C#'s XML comment cref attribute with params syntax

前端 未结 3 1459
粉色の甜心
粉色の甜心 2020-12-24 08:58

In C#, I am trying to use to reference a method signature that contains the params keyword. I know this converts the parameter list to an array,

3条回答
  •  不知归路
    2020-12-24 09:03

    According to the B.3.1 ID string format article, referencing an array is done with [square brackets] (with optional lowerbound:size specifiers) but if you just want to refer to an array of a certain type (or even an Object array), you can't just write

    instead you need to specify you're making a type reference with the T: prefix, like

    This does not seem to apply when referencing a specific overload of a method, such as

提交回复
热议问题