In order to reference a member of a class in XML comments/documentation, you have to use the following tag:
<see cref="member"/>
It is better explained here.
How do you reference an indexer?
I mean, a member like this one:
internal object this[ int index ] {
...
}
Thanks in advance.
In general, in order to find out, how to reference any member in your comments, find the member in your XML documentation file for the assembly. It is created on each build. With the only exception of generics the member reference can be taken from here:
Unfortunately, generic definition formats seem not to be compatible between the documentation file and the cref tags. While in the XML file, generics look like that:
The
cref
tag expects them in one of the following formats:as proposed here.
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")
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: