如何在 C# XML 中显示泛型类型摘要

Mim*_*imi 8 c# generics summary

/// <summary>\n/// Something about this generic method which works with ??? type.\n/// </summary>\n/// <typeparam name="T">\xe2\x88\x99\xe2\x88\x99\xe2\x88\x99</typeparam>\n/// <returns></returns>\npublic T Foo<T>()\n{\n    \xe2\x88\x99\xe2\x88\x99\xe2\x88\x99\n}\n
Run Code Online (Sandbox Code Playgroud)\n\n

是否可以在摘要标签中写入注释以显示当前给定的通用类型。(就像视觉工作室一样)?

\n\n

例如Something about this generic method which works with string type.我们可以在工具提示中看到Foo<string>()

\n

out*_*man 6

这个标签应该这样做<typeparamref name="T"/>

文档注释推荐标签(C# 编程指南)