Skip to content

Commit 1e7b2c3

Browse files
bkoelmandennisdoomen
authored andcommitted
Cleanup of old rules (#143)
1 parent 904e23b commit 1e7b2c3

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

_pages/1700_NamingGuidelines.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Parameter | Camel | `typeName` |
3737
Type Parameter | Pascal | `TView` |
3838
Property | Pascal | `BackColor` |
3939
Tuple element | Camel | `firstName` |
40+
Resource key | Pascal | `SaveButtonTooltipText` |
4041

4142
### <a name="av1704"></a> Don't include numbers in variables, parameters and type members (AV1704) ![](/assets/images/3.png)
4243
In most cases they are a lazy excuse for not defining a clear and intention-revealing name.

_pages/2200_FrameworkGuidelines.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,12 @@ For instance, use `object` instead of `Object`, `string` instead of `String`, an
1111

1212
**Exception:** When referring to static members of those types, it is custom to use the full CLS name, e.g. `Int32.Parse()` instead of `int.Parse()`. The same applies to members that need to specify the type they return, e.g. `ReadInt32`, `GetUInt16`.
1313

14-
### <a name="av2205"></a> Properly name properties, variables or fields referring to localized resources (AV2205) ![](/assets/images/3.png)
15-
The guidelines in this topic apply to localizable resources such as error messages and menu text.
16-
17-
- Use Pascal casing in resource keys.
18-
- Provide descriptive identifiers rather than short ones. Keep them concise where possible, but don't sacrifice readability.
19-
- Use only alphanumeric characters in naming resources.
20-
2114
### <a name="av2207"></a> Don't hard-code strings that change based on the deployment (AV2207) ![](/assets/images/3.png)
2215
Examples include connection strings, server addresses, etc. Use `Resources`, the `ConnectionStrings` property of the `ConfigurationManager` class, or the `Settings` class generated by Visual Studio. Maintain the actual values into the `app.config` or `web.config` (and most definitely not in a custom configuration store).
2316

2417
### <a name="av2210"></a> Build with the highest warning level (AV2210) ![](/assets/images/1.png)
2518
Configure the development environment to use **Warning Level 4** for the C# compiler, and enable the option **Treat warnings as errors** . This allows the compiler to enforce the highest possible code quality.
2619

27-
### <a name="av2215"></a> Properly fill the attributes of the `AssemblyInfo.cs` file (AV2215) ![](/assets/images/3.png)
28-
Ensure that the attributes for the company name, description, copyright statement, version, etc. are filled. One way to ensure that version and other fields that are common to all assemblies have the same values, is to move the corresponding attributes out of the `AssemblyInfo.cs` into a `SolutionInfo.cs` file that is shared by all projects within a solution.
29-
3020
### <a name="av2220"></a> Avoid LINQ for simple expressions (AV2220) ![](/assets/images/3.png)
3121
Rather than:
3222

0 commit comments

Comments
 (0)