Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In C# is ID / OK ever to be used?

With standard naming conventions is there ever a scenario that it is correct to use ID or OK in all capitals?

like image 761
Chris Marisic Avatar asked Aug 10 '11 13:08

Chris Marisic


People also ask

What is '~' in C language?

The tilde (~) is a character in the standard ASCII character set that is provided on a conventional computer keyboard and is used in both writing and computer programming. It corresponds to ASCII code 126. The tilde is also sometimes known as the twiddle.

What does the || mean in C?

The logical OR operator ( || ) returns the boolean value true if either or both operands is true and returns false otherwise.

What is operators in C?

C operators are one of the features in C which has symbols that can be used to perform mathematical, relational, bitwise, conditional, or logical manipulations. The C programming language has a lot of built-in operators to perform various tasks as per the need of the program.

What does -= mean in C++?

-= Subtract AND assignment operator, It subtracts right operand from the left operand and assign the result to left operand. C -= A is equivalent to C = C - A.


1 Answers

No. According to the .NET Framework design guidelines, the correct capitalization is Id and Ok as these are abbreviations, not acronyms.

However, if you already have shipping DLLs which already use ID or OK then you should not change them as it will break consumers. Hence why the .NET Framework has some instances of these capitalizations, for example.

like image 139
Greg Beech Avatar answered Oct 19 '22 01:10

Greg Beech