Chris Marisic
Chris Marisic

Reputation: 33098

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?

Upvotes: 6

Views: 313

Answers (1)

Greg Beech
Greg Beech

Reputation: 136637

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.

Upvotes: 16

Related Questions