如何在C#XML摘要中显示泛型类型
发布时间:2020-12-16 07:04:01 所属栏目:百科 来源:网络整理
导读:/// summary/// Something about this generic method which works with ??? type./// /summary/// typeparam name="T"???/typeparam/// returns/returnspublic T FooT(){ ???} 是否可以在摘要标记中编写注释以显示当前给定的泛型类型. (正如visual-studio所
/// <summary> /// Something about this generic method which works with ??? type. /// </summary> /// <typeparam name="T">???</typeparam> /// <returns></returns> public T Foo<T>() { ??? } 是否可以在摘要标记中编写注释以显示当前给定的泛型类型. (正如visual-studio所做的那样)? (例如,在Foo< string>()的工具提示中,我们可以看到有关此泛型方法的一些内容,它适用于字符串类型.) 解决方法
这个标签应该这样做< typeparamref name =“T”/>
Recommended Tags for Documentation Comments (C# Programming Guide) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |