diff --git a/README.md b/README.md index 2d97fb7..a07c238 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ ## Legacy Documentation - [Prism 4 Demo](https://www.codeproject.com/Articles/254120/Prism-4-MEF-Application). Migrated to Prism 6 [link](http://dev.mitech.com.sg:3000/playground/prism4-demo) +- [Prism 4 QuickGuide](./legacy/Prism4_QuickGuide.pdf) +- [Prism 4 Guide](./legacy/Prism4_Guide.pdf) - [Prism 5](https://www.microsoft.com/en-sg/download/details.aspx?id=42572) - Another nice [link](https://www.cnblogs.com/DoubleChen/p/3687305.html) - Nuget : [Prism 4.1](https://www.nuget.org/packages/prism/4.1.0) diff --git a/csharp-convention.md b/csharp-convention.md index e449621..8c469ff 100644 --- a/csharp-convention.md +++ b/csharp-convention.md @@ -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) * [What's new](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new) ## Naming Convention * [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 | |:--------------------------|:-----------|-------:|:-------|:-------|:-------|:-------------|:-------------------|:------------| @@ -18,4 +19,12 @@ | Field name | camelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | Yes | | Properties name | PascalCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No | | Delegate name | PascalCase | 128 | No | No | Yes | Yes | [A-z] | No | -| Enum type name | PascalCase | 128 | Yes | No | No | No | [A-z] | No | \ No newline at end of file +| 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) +* `.(|)[.][.]` + * eg: `Mitech.Vision.Desktop`, `Mitech.Vision.Modules.Camera`, `MitechApp.Desktop`, `MitechLib.Modules.Recipes`, etc +* `PascalCamelCase` convention +* Use Plural names where appropriate \ No newline at end of file diff --git a/legacy/Prism4_Guide.pdf b/legacy/Prism4_Guide.pdf new file mode 100644 index 0000000..a7b1080 Binary files /dev/null and b/legacy/Prism4_Guide.pdf differ diff --git a/legacy/Prism4_QuickGuide.pdf b/legacy/Prism4_QuickGuide.pdf new file mode 100644 index 0000000..3a4f0d7 Binary files /dev/null and b/legacy/Prism4_QuickGuide.pdf differ