Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 753 Bytes

RCS1014.md

File metadata and controls

32 lines (21 loc) · 753 Bytes

RCS1014: Use explicitly/implicitly typed array

Property Value
Id RCS1014
Severity None
Required option roslynator_array_creation_type_style

Example

Code with Diagnostic

var items = new[] { "a", B };

Code with Fix

var items = new string[] { "a", B };

Options

Prefer explicitly/implicitly typed array

roslynator_array_creation_type_style = explicit|implicit|implicit_when_type_is_obvious

(Generated with DotMarkdown)