Skip to content

Implicitly constructed arguments #1644

@dave-yotta

Description

@dave-yotta
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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions