Skip to content

Commit

Permalink
Added an exception to AV2201 to mention methods like GetUInt16 or Rea…
Browse files Browse the repository at this point in the history
…dString.

Fixes #14
  • Loading branch information
dennisdoomen committed Oct 16, 2016
1 parent b075c30 commit 9541ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Guidelines/2200_FrameworkGuidelines.md
Expand Up @@ -7,7 +7,7 @@ NOTE: Requires Markdown Extra. See http://michelf.ca/projects/php-markdown/extra
### Use C# type aliases instead of the types from the `System` namespace (AV2201) ![](images/1.png)
For instance, use `object` instead of `Object`, `string` instead of `String`, and `int` instead of `Int32`. These aliases have been introduced to make the primitive types first class citizens of the C# language, so use them accordingly.

**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()`.
**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`.

### Properly name properties, variables or fields referring to localized resources (AV2205) ![](images/3.png)
The guidelines in this topic apply to localizable resources such as error messages and menu text.
Expand Down

0 comments on commit 9541ff5

Please sign in to comment.