roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Implicitly constructed arguments

Open dave-yotta opened this issue 6 months ago • 0 comments

var thing1 = new MyType ("foo", new ArgThing("bar"));

can be refactored to with RCS1250

MyType thing1 = new("foo", new ArgThing("bar"));

But I want to take mine further to:

MyType thing1 = new("foo", new("bar"));
MyType thing2 = FactoryMethod("foo", new("bar"));

Can these be added to roslynator for arguments?

dave-yotta avatar Apr 28 '25 15:04 dave-yotta