|
|
|
@ -1,10 +1,11 @@
|
|
|
|
# C-Charp Convention
|
|
|
|
# C-Sharp Convention
|
|
|
|
|
|
|
|
|
|
|
|
* [C# Framework version](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version)
|
|
|
|
* [C# Framework version](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version)
|
|
|
|
* [What's new](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new)
|
|
|
|
* [What's new](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new)
|
|
|
|
|
|
|
|
|
|
|
|
## Naming Convention
|
|
|
|
## Naming Convention
|
|
|
|
* [Microsoft](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions)
|
|
|
|
* [Microsoft](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions)
|
|
|
|
|
|
|
|
* [MSDN](https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/general-naming-conventions?redirectedfrom=MSDN)
|
|
|
|
|
|
|
|
|
|
|
|
| Object Name | Notation | Length | Plural | Prefix | Suffix | Abbreviation | Char Mask | Underscores |
|
|
|
|
| Object Name | Notation | Length | Plural | Prefix | Suffix | Abbreviation | Char Mask | Underscores |
|
|
|
|
|:--------------------------|:-----------|-------:|:-------|:-------|:-------|:-------------|:-------------------|:------------|
|
|
|
|
|:--------------------------|:-----------|-------:|:-------|:-------|:-------|:-------------|:-------------------|:------------|
|
|
|
|
@ -19,3 +20,11 @@
|
|
|
|
| Properties name | PascalCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
|
|
|
| Properties name | PascalCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
|
|
|
| Delegate name | PascalCase | 128 | No | No | Yes | Yes | [A-z] | No |
|
|
|
|
| Delegate name | PascalCase | 128 | No | No | Yes | Yes | [A-z] | No |
|
|
|
|
| Enum type name | PascalCase | 128 | Yes | No | No | No | [A-z] | No |
|
|
|
|
| Enum type name | PascalCase | 128 | Yes | No | No | No | [A-z] | No |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* **Method Name** to start with verb. Eg. *Update*Projection(), *Calculate*Angle()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## NameSpace Naming Convention [Microsoft](https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/names-of-namespaces)
|
|
|
|
|
|
|
|
* `<Company>.(<Product>|<Technology>)[.<Feature>][.<Subnamespace>]`
|
|
|
|
|
|
|
|
* eg: `Mitech.Vision.Desktop`, `Mitech.Vision.Modules.Camera`, `MitechApp.Desktop`, `MitechLib.Modules.Recipes`, etc
|
|
|
|
|
|
|
|
* `PascalCamelCase` convention
|
|
|
|
|
|
|
|
* Use Plural names where appropriate
|