roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Suggestion: Extend RCS1051a with property accessors and method calls

Open krisztiankocsis opened this issue 4 years ago • 0 comments
trafficstars

RCS1051a now excludes only single token statements. It would be nice to also exclude (including chained) property access and method calls. In general, everything that don't have a relational operator.

var a = type.Sub.A ? 1 : 2; // Multi-level property access
var b= type.Sub.EvenMore.Call() ? 1 : 2; // Multi-level method call/prop access
var c = !type.Sub ? 1 : 2; // Negative multi-level

krisztiankocsis avatar Jan 21 '21 15:01 krisztiankocsis