Search code examples
c#naming-conventions

C# naming conventions for acronyms


Regarding C# naming for acronyms, if I was writing a library related to the Windows API, is there any strong convention toward either WindowsApi or WindowsAPI, or is it just personal preference?


Solution

  • There is a convention, and it specifies initial uppercase, the rest lowercase, for all acronyms that are more than 2 characters long. Hence HttpContext and ClientID.