XML 当参数名称不匹配时,方法文档不会产生警告

XML method documentation does not produce a warning when a parameter name doesn't match

在 VB 中,如果方法参数名称与 XML 文档不匹配,我将收到警告:

XML comment parameter 'arg' does not match a parameter on the corresponding 'sub' statement. XML comment will be ignored.

在 C# 中,我没有收到警告:

我知道如果我做对了并使用 "refactor" 上下文菜单重命名了参数,它也会重命名 XML 文档,但假设我并不总是做事正确的方法。

为什么会这样?是否有我可以打开的设置来获取这些警告?

如果您在项目属性中启用 XML 文档文件:

您将收到警告: