Synopsis: | If possible, initialize variables at the point of declaration |
Language: | C# |
Severity Level: | 7 |
Category: | Object lifecycle |
Description: |
Avoid the C style where all variables have to be defined at the beginning of a block, but rather define and initialize each variable at the point where it is needed. |