Name | Checked | Synopsis |
---|
10@201
|
|
Use an enum to strongly type parameters, properties, and return types |
10@202
|
 |
Use the default type Int32 as the underlying type of an enum unless there is a reason to use Int64 |
10@203
|
|
Use the [Flags] attribute on an enum if a bitwise operation is to be performed on the numeric values |
10@301
|
 |
Do not use 'magic numbers' |
10@401
|
 |
Floating point values shall not be compared using the == nor the != operators nor the Equals method. |
10@403
|
|
Do not cast types where a loss of precision is possible |
10@404
|
|
Only implement casts that operate on the complete object |
10@405
|
|
Do not generate a semantically different value with a cast |
10@406
|
 |
When using composite formatting, do supply all objects referenced in the format string |
10@407
|
 |
When using composite formatting, do not supply any object unless it is referenced in the format string |
10@501
|
|
Only use var when the type is very obvious |