C# 成员字段命名约定与 .net 核心源代码和自动生成的代码不匹配?

C# member field naming convention does not match .net core source code and auto generated code?

如果你看 here and here 它说你不应该为你的成员字段变量添加前缀。

但是如果您查看 .net core 的源代码,所有字段变量都带有前缀 _?

当您在 Visual Studio 2017 年构建控制器时,它还会生成带有 _ 前缀的字段吗?

所以这里一定有问题?

核心变量是私有的。指南指出 "Internal and private fields are not covered by guidelines"