Skip to content

Implicitly constructed arguments #1644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dave-yotta opened this issue Apr 28, 2025 · 0 comments
Open

Implicitly constructed arguments #1644

dave-yotta opened this issue Apr 28, 2025 · 0 comments

Comments

@dave-yotta
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant