Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 959971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:06:29+00:00 2026-05-16T01:06:29+00:00

I have a property EntityID in a class. Resharper (5.1) says Name ‘EntityID’ does

  • 0

I have a property “EntityID” in a class. Resharper (5.1) says

Name ‘EntityID’ does not match rule
‘Methods, properties and events’.
Suggested name is ‘EntityId’.

But IMHO according to the naming conventions in the Design Guidelines for Class Library Developers. ‘EntityID’ should be perfectly fine:

  • 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: * The latest version of the guidelines also say:

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.

Am I understanding the guidelines correctly? If so, how can I make ReSharper accept “EntityID” (well known two letter acronym) but reject “HTMLReader” (it should be HtmlReader).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:06:30+00:00Added an answer on May 16, 2026 at 1:06 am

    Do you want to stick to the recommendations of the Framework Design Guidelines, or do you want to use uppercase ID regardless?

    The latest version of the guidelines has this to say:

    The two abbreviations that can be used
    in identifiers are ID and OK. In
    Pascal-cased identifiers they should
    appear as Id, and Ok. If used as
    the first word in a camel-cased
    identifier, they should appear as id
    and ok, respectively.

    So it seems that ReSharper is correct in the case of Id.

    Out of interest, ReSharper also recommends that two character acronyms follow the same casing rules. This is at odds with the guidelines: “Do capitalize both characters of two-character acronyms, except the first word of a camel-cased identifier.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.