- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我在一个类中有一个属性“EntityID”。 Resharper (5.1) 说
Name 'EntityID' does not match rule 'Methods, properties and events'. Suggested name is 'EntityId'.
但是恕我直言,根据 Design Guidelines for Class Library Developers 中的命名约定. “EntityID”应该完全没问题:
- Do not use acronyms that are not generally accepted in the computing field.
- Where appropriate, use well-known acronyms to replace lengthy phrase names. For example, use UI for User Interface and OLAP for On-line Analytical Processing.
- When using acronyms, use Pascal case or camel case for acronyms more than two characters long. For example, use HtmlButton or htmlButton. However, you should capitalize acronyms that consist of only two characters, such as System.IO instead of System.Io.
- Do not use abbreviations in identifiers or parameter names. If you must use abbreviations, use camel case for abbreviations that consist of more than two characters, even if this contradicts the standard abbreviation of the word
*Update: * 最新版指南还说:
Do capitalize both characters of two-character acronyms, except the first word of a camel-cased identifier. A property named DBRate is an example of a short acronym (DB) used as the first word of a Pascal-cased identifier. A parameter named ioChannel is an example of a short acronym (IO) used as the first word of a camel-cased identifier.
我是否正确理解了指南?如果是这样,我如何让 ReSharper 接受“EntityID”(众所周知的两个字母首字母缩写词)但拒绝“HTMLReader”(应该是 HtmlReader)。
最佳答案
如果您希望 ReSharper 将“ID”作为“身份”的有效缩写,则只需选择属性,按“Alt-Enter”,然后从 ReSharper 上下文中选择“将‘ID’添加到缩写列表”-菜单。
关于c# - ReSharper 提示成员 "ID"中的大写字母 "EntityID",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3351304/
我正在尝试实现另一个网站提供的 SSO。 说明要求我输入“发行人”信息。结果证明等效于 EntityDescriptor 中的 EntityID URL。 我假设我需要将该 URL 设置为我服务器上的
有没有人在尝试配置 EntityId 包含查询字符串参数的 SSO Idp 实例时遇到任何问题,例如 https://idpserver.com/IdPServlet?idp_id=12345678
我在一个类中有一个属性“EntityID”。 Resharper (5.1) 说 Name 'EntityID' does not match rule 'Methods, properties an
在 the documentation about entity naming表示最好使用域名作为属性 entityID 的值: Strongly recommended NOT to use the
根据 Shibboleth wiki entity naming我们不应该对实体 id 使用真实的主机,我很困惑要使用什么。实体 id 有什么意义,或者我可以选择什么? 如果我在配置后编辑它会怎样。
我将 CQRS 与事件溯源结合使用。我有一个实体 eg.Form 和 entityId。现在我必须在此实体上发送复制命令(CommandName:CopyForm,EventName:FormCopi
我目前在 CentOS 服务器上安装了一个 simplesamlphp 作为服务提供者。我将 config/authsources.php 定义如下: 'default-sp' => array(
我是一名优秀的程序员,十分优秀!