Is C # ID / OK ever used?

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

+6
source share
1 answer

Not. According to the development guidelines of the .NET Framework, the correct capital letter is Id and Ok , as these are abbreviations, not abbreviations.

However, if you already have shipping DLLs that already use Id or Ok , then you should not change them, as this will lead to consumer failure. Therefore, why the .NET Framework has some examples of these capitalizations, for example.

+16
source

Source: https://habr.com/ru/post/894718/


All Articles