Skip to content

Parameters to Parameter Object #19

@AdamFrisby

Description

@AdamFrisby

Create a new tool which converts method calls from passing individual arguments, to passing a struct/record/class, then refactoring all usages of the caller.

Before:

void MyFunction(bool arg1, string arg2, CustomObject arg3) {
...
}


MyFunction(true, "Hello World!", new CustomObject());

After:

void MyFunction(MyFuncArgs args) {
...
}

MyFunction(new MyFuncArgs(true, "Hello World!", new CustomObject());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions