How to make a cref to method overloads in a tag in C#?

前端 未结 3 989
小鲜肉
小鲜肉 2020-12-11 14:26

I see in MSDN links such as \"CompareOrdinal Overloads\". How can I write such a link in C#?

I tried:

MyMethod Overl         


        
3条回答
  •  既然无缘
    2020-12-11 15:13

    To target specific members, I believe you just match the signature:

    /// 
    static void Foo() { }
    /// 
    ///  <------ complains
    static void Foo(int a) { }
    

    To be honest, I'm not sure how to generate an "all overloads" link; I'd assume that any sensible generator did this automatically.

提交回复
热议问题