/code-conventions

Contains style guidelines and other code conventions for various languages in one convenient spot.

Primary LanguageC#

Code Conventions

Contains style guidelines and other code conventions for various languages in one convenient spot.

The conventions detailed here are as close as possible to the official recommendations. As always, consistency within a project or organization is more important than rigid adherence to these conventions.

If you notice something is wrong or would like to dispute a style recommendation, please submit an issue.

Language Style Guides

Case Styles

Here are definitions for some common case styles that can be seen throughout these guides:

  • PascalCase: Capitalize first letter in all words.
  • camelCase: Capitalize first letter in all words except the first.
  • snake_case: All lowercase with underscores for spaces between words.
  • kebab-case: All lowercase with hyphens for spaces between words.