Coding Style - gerhardol/gitextensions GitHub Wiki
This repository uses StyleCop Analyzers which will enforce the code style at compile time.
E.g. for file organization, the original .NET Framework guidelines should be used as a basis.
As long as classes are not published as an API, classes should be declared internal. (But the members should be declared public.)
Namespaces should be declared without a { } block.
Checks for null should be done using the is operator, e.g. if (instance is not null).
Function-local functions should be located in a section after an explicit final return statement.
Named arguments should be used when passing literal values to a function, e.g. CreateNode(parentNode: null, isVisible: true).
Mnemonics should be added to all UI elements (except for single settings in settings pages), e.g. Button.Text = "&Action".