Svi*_*ish 22 c# overloading xml-documentation
如果我有这两种方法
public Foo Get(string bar) { ... }
public Foo Get(int bar) { ... }
Run Code Online (Sandbox Code Playgroud)
并在不同的方法上编写这段xml文档
/// <summary>
/// Has a close relation to the <see cref="Get"/> methods.
/// </summary>
Run Code Online (Sandbox Code Playgroud)
我得到一个蓝色波浪形Get,说这是一个不明确的参考'得到'.这是真的,但我希望它引用两者.这样做的正确方法是什么?或者我应该只引用单个方法重载?
Dan*_*ott 20
尝试
/// Has a close relation to the <see cref="Get(string)"/>
/// and <see cref="Get(int)" /> methods.
Run Code Online (Sandbox Code Playgroud)
您可能需要完整的类型名称,但只要您放入第一个括号,intellisense就会有所帮助.
希望有所帮助,
担
| 归档时间: |
|
| 查看次数: |
2612 次 |
| 最近记录: |