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

  • Home
  • SEARCH
  • 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 1088923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:08:31+00:00 2026-05-16T23:08:31+00:00

Microsoft naming conventions for .Net put constants in Pascal Case. In fact, it explicitly

  • 0

Microsoft naming conventions for .Net put constants in Pascal Case. In fact, it explicitly tells us to avoid using all caps for constants:

You might also have to capitalize
identifiers to maintain compatibility
with existing, unmanaged symbol
schemes, where all uppercase
characters are often used for
enumerations and constant values. In
general, these symbols should not be
visible outside of the assembly that
uses them.

From MSDN.

On SO I found some questions on the subject, like this one, but I couldn’t find a rationale. So, anyone know or have a reference that points to why MS chose this convention?

  • 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-16T23:08:32+00:00Added an answer on May 16, 2026 at 11:08 pm

    Its just a style guideline. Programming languages have started to recommend and push formatting conventions so that code is more readable.

    Also, symbols that get substituted by the preprocessor deserve special attention– they live outside/before the type system and may not be what they appear to be. Constants are just constants, they won’t change at compile or runtime.

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

Sidebar

Related Questions

In .NET, Microsoft has guidelines for naming classes, members, etc. when developing class libraries.
According to the guidance published in New Recommendations for Using Strings in Microsoft .NET
I have been using ID (capital case) in all my property names and sql
I am currently following Microsoft's Naming Guidelines, and so using camelCase in function parameter
Microsoft .NET Framework Client Profile Offline Installer - 255.6 MB. Shouldn't it be 27MB
Microsoft recommends their Script Encoder to encode asp.net scripts on server side from nosy/prying
Microsoft seems to want us to stop using the MDI, but if more people
Use naming from http://msdn.microsoft.com/en-us/library/cc309030.aspx When I docking CPaneDialog with another CDockablePane the Tabbed Pane
According to Microsoft event naming guidelines , the sender parameter in a C# event
I'm looking for a good naming convention for my period snapshot fact tables. Currently,

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.