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 8177135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:26:08+00:00 2026-06-06T23:26:08+00:00

One of our coding standard ‘rules’ is: Use the common type system. For example,

  • 0

One of our coding standard ‘rules’ is:

  • Use the common type system. For example, use Int32 instead of int.

I have not seen a similar rule before, although our other guidelines are roughly based on Microsoft’s Design Guidelines Digest. It doesn’t seem like what the Common Type System is, either.

I find it inconvenient as I end up having to rewrite default Visual Studio and ReSharper refactorings to convert string to String, float to Single, long to Int64 etc.
It’s also applied fairly inconsistently (e.g. not for object to Object), possibly as a consequence of its inconvenience, and no StyleCop rule exists to check it is applied.

I am therefore wondering why this rule was ever set. Could there be a good reason? Are there any cases (perhaps historical) where Int32 must be used instead of int for example?

Update:

I read through the recommended Framework Design Guidelines (2006, Cwalina & Adams) section 3.2.3 Avoiding Language-Specific Names and they state “it is important to avoid the use of these language-specific type names in identifiers” (my emphasis). Agreed.

However, Jeffrey Richter then goes on to comment “I take this a step farther and never use the language’s alias names [as it] adds nothing of value and introduces enormous confusion“.
Perhaps this is where this rule has come from?

  • 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-06-06T23:26:09+00:00Added an answer on June 6, 2026 at 11:26 pm

    I suspect this rule comes from a misinterpretation of the framework guidelines.

    The guidelines say in the General Naming Conventions section:

    Do use a generic common language runtime (CLR) type name, rather than a language-specific name, in the rare cases when an identifier has no semantic meaning beyond its type.

    For example, a method that converts data to Int16 should be named ToInt16, not ToShort because Short is the language-specific type name for Int16.

    If you create identifiers which contain a type as part of their name, for example a set of SomeType ReadSomeType() methods, then you should use the actual type name for SomeType and not the C# alias.

    A programmer who works in a different language might associate different meanings with a type. For example if you had a ReadFloat() method, a C# programmer would assume it returns System.Single, and a F# programmer would assume it returns System.Double. So you should name it ReadSingle or ReadDouble.

    This rule does not apply to the simple type names you use to refer to a type in your code. A programmer consuming your library will never see which for you used.

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

Sidebar

Related Questions

As part of one our system's we enable a user in the backoffice to
One of our servers has 4 gb of data. But as of now i
One of our products contains multiple WCF services whose business layers all sit on
One of our staff members has lost his mailbox but luckily has a dump
One of our user did an insert statement in development server. The insert worked
One of our applications is exhibiting poor network behavior on Vista due to the
One of our MSI's has started failing with Error 2902. It'll get most of
One of our products implements the following one-way web service structure: Server <--------------------- Middleware
One of our developers used this call: TzSpecificLocalTimeToSystemTime() but unfortunately we cannot keep it
One of our page templates is made up of a bunch of macros. These

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.