Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 502
deltanovember Avatar asked Jan 21 '10 12:01

deltanovember


People also ask

What is\\ C?

\c means you are escaping the "c" character, allowing you to print c \c means you are escaping the "\" character, which allows you to print \c. Escaping a character means that you are making the compiler ignore the character, if it is used for any functions or is reserved within a string.

What C is used for?

C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on.

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.


1 Answers

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.

like image 84
David Hedlund Avatar answered Sep 18 '22 22:09

David Hedlund