C# Coding Guidelines

This document describes how you should format your code and what naming conventions you should use. There are two main areas to target with this;

  1. Coding style, formatting and naming of private variables.
  2. Following the .Net coding guidelines concerning design rules, naming rules for public types, classes and namespaces and complying with the .Net security rules. To help you follow these rules we will use a plug in to Visual Studio based on Microsoft FxCop.

Why using code conventions?

Code conventions are important to programmers for a number of reasons:

Note: For the conventions to work, every person writing software must conform to the code conventions. Everyone.

Contents