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
|
2020-12-23 14:59:06 +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.
|