你的位置: 码友网首页 / 资讯源列表 / Configure Visual Studio to Name Private Fields with Underscore

关于[Configure Visual Studio to Name Private Fields with Underscore]的摘要:

Most C# coding standards recommend using camelCase for local variables and _camelCase for private or internal (and I also say for protected, but that's just me) fields. Unfortunately, out of the box Visual Studio just uses camelCase for these fields, which makes typical dependency injection scenarios annoying in constructors

原文地址: https://ardalis.com/configure-visual-studio-to-name-private-fields-with-underscore/

收录时间: 2020-10-27 浏览量: 2411 分类: Visual Studio

| 0 收藏 | 0