Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/assets/C#NamingGuidelinesTable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# C# Naming Conventions - Quick Reference Table

| Kind | Naming Convention | Example |
| ------------------------------------ | ----------------- | ------------------------------------------------------------------ |
| Classes | PascalCase | `class Car` |
| Types and Namespaces | PascalCase | `namespace VehicleManufacturer;` |
| Parameters | camelCase | `public Car(int odometerMileage, string manufacturer)` |
| Methods | PascalCase | `public void StartEngine()` |
| Properties | PascalCase | `public double FuelLevel { get; set; }` |
| Local Variables | camelCase | `int yearManufactured;` |
| Local Functions | PascalCase | `string CalculateMilesUntilEmpty(double fuelLevel)` |
| Fields | _PascalCase | `private string _Day;` |
| Enum Members | PascalCase | `enum Status { Unknown, Operational, Broken, InShop }` |
| Type Parameters | TPascalCase | `public TOutput Convert<TInput, TOutput>(TInput from)` |
| Interfaces | IPascalCase | `interface ISampleInterface` |
3 changes: 0 additions & 3 deletions docs/coding/csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
# Guidelines





## ***Coding***

### Arrays
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: IntelliTect Guidelines
Coding Guidelines
================
* [C#]({{ site.baseurl }}{% link coding/csharp.md %})
* [C# Naming Guidelines Table]({{ site.baseurl }}{% link assets/C#NamingGuidelinesTable.md %})
* [JavaScript]({{ site.baseurl }}{% link coding/javascript.md %})

Analyzers
Expand Down