2020-06-30 12:48:39 +02:00
|
|
|
Unnecessarily verbose declarations and initializations make it harder to read the code, and should be simplified.
|
|
|
|
|
|
|
|
Specifically the following should be omitted when they can be inferred:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
2020-06-30 12:48:39 +02:00
|
|
|
* array element type
|
|
|
|
* array size
|
2021-01-27 13:42:22 +01:00
|
|
|
* ``++new DelegateType++``
|
|
|
|
* ``++new Nullable<Type>++``
|
|
|
|
* object or collection initializers (``++{}++``)
|
2020-06-30 12:48:39 +02:00
|
|
|
* type of lambda expression parameters
|
|
|
|
* parameter declarations of anonymous methods when the parameters are not used.
|