Name | Checked | Synopsis |
---|
5@101
|
|
Declare and initialize variables close to where they are used |
5@102
|
|
If possible, initialize variables at the point of declaration |
5@105
|
|
Use a const field to define constant values |
5@106
|
|
Use a public static readonly field to define predefined object instances |
5@107
|
|
Set a reference field to null to tell the garbage collector that the object is no longer needed |
5@108
|
 |
Do not re-declare a visible name in a nested scope |
5@111
|
 |
Avoid implementing a finalizer |
5@112
|
 |
Provide a method that will cause the finalizer not to be called |
5@113
|
 |
Implement IDisposable if a class uses unmanaged resources, owns disposable objects or subscribes to other objects |
5@114
|
 |
Do not access any reference type members in the finalizer |
5@116
|
|
Always document when a member returns a copy of a reference type or array |
5@117
|
|
Properties, methods and arguments representing strings or collections should never be null |
5@118
|
|
A virtual method may only be called if an object is fully constructed |
5@119
|
 |
Return interfaces to unchangeable collections |
5@120
|
 |
Avoid using named arguments |
5@121
|
 |
Don't use "using" variables outside the scope of the "using" statement |
5@122
|
 |
Avoid empty finalizers |