Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 764 Bytes

RCS1014.md

File metadata and controls

42 lines (27 loc) · 764 Bytes

RCS1014: Use explicitly typed array (or vice versa)

Property Value
Id RCS1014
Category Readability
Severity None

Example

Code with Diagnostic

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

Code with Fix

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

Options

Use implicitly typed array (when type is obvious)

roslynator.RCS1014.use_implicit_type_when_obvious = true

Use implicitly typed array

roslynator.RCS1014.invert = true

See Also

(Generated with DotMarkdown)