By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
Consider dropping the array type and/or size when it is initialized explicitly using an initializer. This makes the syntax more concise.
var arr = new int[5] {1, 2, 3, 4, 5};
var arr = new[] {1, 2, 3, 4, 5};