How do I reference a C# keyword in XML documentation?

萝らか妹 提交于 2019-12-02 18:42:09
Jon Skeet

cref is meant to refer to another member - a class, a method etc.

What would you expect it to link to in this case? In general, what do you want the overall effect to be?

According to this excellent XML doc guide, the <see> tag has an undocumented attribute langword:

<see langword="switch" />

Would that help you? It might be worth trying it just to see what it does.

If you just want to use a normal hyperlink, use href instead of cref:

<see href="http://msdn.microsoft.com/en-us/library/06tc147t.aspx">switch</see>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!