Change type according to expression
Property | Value |
---|---|
Id | RR0022 |
Applicable Syntax | variable declaration, foreach statement |
Syntax Span | type |
Enabled by Default | ✓ |
Usage
Example #1
before.cs
IEnumerable<object> items = new List<object>();
after.cs
List<object> items = new List<object>();
Configuration
roslynator_refactoring.change_type_according_to_expression.enabled = true|false