From 3d24f340457112d5883f06b879afa0c7a3525a78 Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Wed, 21 Apr 2021 15:16:53 -0700 Subject: [PATCH 1/2] Outline Naming convention table --- NamingConventions.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 NamingConventions.md diff --git a/NamingConventions.md b/NamingConventions.md new file mode 100644 index 000000000..3c67e7521 --- /dev/null +++ b/NamingConventions.md @@ -0,0 +1,20 @@ +| Kind | Naming Convention | Examples | +|--------------------------------------|------------------ |--------------------| +| Types and namespaces | UpperCamelCase | | +| Interfaces | IUpperCamelCase | | +| Methods | UpperCamelCase | | +| Properties | UpperCamelCase | | +| Type Parameters | TUpperCamelCase | | +| Events | UpperCamelCase | | +| Local Variables | lowerCamelCase | | +| Local constants | lowerCamelCase | | +| Parameters | lowerCamelCase | | +| Fields (not private) | UpperCamelCase | | +| Instance fields (private) | _lowerCamelCase | | +| Static field (private) | _lowerCamelCase | | +| Constant field (not private) | UpperCamelCase | | +| Constant field (private) | UpperCamelCase | | +| Static readonly fields (not private) | UpperCamelCase | | +| Static readonly fields (private) | UpperCamelCase | | +| Enum members | UpperCamelCase | | +| Local functions | UpperCamelCase | | \ No newline at end of file From e0d7c96ce491a8245e6640b33b12885db74d417e Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Wed, 21 Apr 2021 15:18:49 -0700 Subject: [PATCH 2/2] Add title to table --- NamingConventions.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NamingConventions.md b/NamingConventions.md index 3c67e7521..7978ec761 100644 --- a/NamingConventions.md +++ b/NamingConventions.md @@ -1,5 +1,7 @@ +# C# naming convention quick reference table + | Kind | Naming Convention | Examples | -|--------------------------------------|------------------ |--------------------| +|--------------------------------------|-------------------|--------------------| | Types and namespaces | UpperCamelCase | | | Interfaces | IUpperCamelCase | | | Methods | UpperCamelCase | | @@ -17,4 +19,4 @@ | Static readonly fields (not private) | UpperCamelCase | | | Static readonly fields (private) | UpperCamelCase | | | Enum members | UpperCamelCase | | -| Local functions | UpperCamelCase | | \ No newline at end of file +| Local functions | UpperCamelCase | |