合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
* 使用 Camel 风格。 * 使用描述性参数名称。参数名称应当具有足够的描述性,以便参数的名称及其类型可用于在大多数情况下确定它的含义。 ~~~ public string GetPagingList(int pageIndex, string currentUrl = null) { int number = 0; //... } ~~~ * 类型内部的私有和受保护字段,使用Camel风格命名,但加“_”前缀 ~~~ public class UserController : Controller { private readonly IUserAppService _userAppService; private readonly IRoleAppService _roleAppService; private readonly IPermissionAppService _permissionAppService; } ~~~