How to reference an indexer member of a class in C# comments

后端 未结 5 1299
我寻月下人不归
我寻月下人不归 2021-01-02 07:00

In order to reference a member of a class in XML comments/documentation, you have to use the following tag:


It

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-02 07:49

    I've had the same question, but with a generic Dictionary.Item(TKey) property. The answer by leppie

    and the additional link by ICR (unfortunately I cannot find the "mscorlib.xml")

    MSDN: Processing the XML File (C# Programming Guide)

    helped me out.

    But the answer by user492238
    (I know, I should directly comment his answer. But since I am new and this is my first post, please go easy on me, because I am not allowed to comment due to my low reputation.)


    resulted only in plain, black text, whereby only the seconds shows tag signs <> as given "hard-coded".

    I found the solution on the MSDN page to use backticks (`) for generics and got a full ("colory") references to the class and property within my XMLDoc:

        
    
    Dictionary.this[TKey]
    

提交回复
热议问题