/// <summary>
/// ...
/// Use <cref="SiX_Dg_RequestStop"/> function to stop this function from another thread.
/// </summary>
public static void SiX_Dg_Execute()
{
}
public static void SiX_Dg_RequestStop()
{
}
此代码中的
cref
链接给出以下编译器警告:C:\Project\file.cs(1337,22): warning CS1570: XML comment on 'AtpDotNet.ATP.SiX_Dg_Execute()' has badly formed XML -- 'A name contained an invalid character.'
如何解决?
最佳答案
因为这不是有效的XML(缺少节点名称),所以:
<cref="SiX_Dg_RequestStop"/>
更改为:
<see cref="SiX_Dg_RequestStop"/>