-
Notifications
You must be signed in to change notification settings - Fork 16
Coding Style
https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/
https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/classes-and-objects
https://docs.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/types-and-variables
Namespaces and the folder structure that contains the .cs
files have a close relationship. To define the correct folder structure helps keeping the relationship with the namespaces. This, in turn enables additional functionalities, such as deriving the web address of the source code of a method.
For a class
, an Attribute
, and Enum
, an Interface
, the folder structure respects the following rules:
A. If a file is in a sub folder, the namespace of the entity must follow: if Bar
is in a sub folder Elements
, its namespace must suffix the Elements
word BH.oM.Structure.Elements
.
B. An Enum
must be in a separate folder Enums
, but the namespace remains unchanged. For example BarFEAType
is in the sub folder Elements, and it is an enum. Its namespace respects A., so it contains the
Elementsword, but does not contain the
Enumword: BH.oM.Structure.Elements. Although, since it is an
Enumit is in an
Enums` folder.
C. The same rule as B. applies to:
-
Attribute
=>Attributes
-
interface
=>Interfaces
-
Introduction to the BHoM:
What is the BHoM for?
Structure of the BHoM
Technical Philosophy of the BHoM -
Getting Started:
Installing the BHoM
Using the BHoM
Submitting an Issue
Getting started for developers -
Use GitHub & Visual Studio:
Using the SCRUM Board
Resolving an Issue
Avoiding Conflicts
Creating a new Repository
Using Visual Studio
Using Visual Studio Code -
Contribute:
The oM
The Engine
The Adapter
The Toolkit
The UI
The Tests -
Guidelines:
Unit convention
Geometry
BHoM_Engine Classes
The IImmutable Interface
Handling Exceptional Events
BHoM Structural Conventions
BHoM View Quality Conventions
Code Versioning
Wiki Style
Coding Style
Null Handling
Code Attributes
Creating Icons
Changelog
Releases and Versioning
Open Sourcing Procedure
Dataset guidelines -
Foundational Interfaces:
IElement Required Extension Methods -
Continuous Integration:
Introduction
Check-PR-Builds
Check-Core
Check-Installer -
Code Compliance:
Compliance -
Further Reading:
FAQ
Structural Adapters
Mongo_Toolkit
Socket_Toolkit