Skip to content

Code Conventions

Jelle Jan Bleeker edited this page Oct 1, 2020 · 20 revisions

On this page you can find the code conventions for this project.

General code Conventions

Classes and definitions

  • Start interface names with capital I.
  • keep private fields and properties at the top of the file.

Properties

Properties are made with BackStores or by just using the auto property functions. See this microsoft page for more info: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/using-properties

Brackets

  • Brackets under definitions. Name() { }
  • Or no brackets for oneliners. Name() return;

WPF MVVM

Om de UI backend van de UI components te kunnen unit testen maken we gebruik van het Modev-View-ViewModel. Een tutorial is hier te vinden.

Clone this wiki locally