When the method has more than three parameters , suggesting a new class.
Before
public void MyMethod(string name,int age,string city,string neighborhood)
{
}
After:
public void MyMethod(NewClass address)
{
}
public class NewClass
{
public string Name {get;set;}
//plus others for age, city, neighborhood
}
Category is Style.
Diagnostic id is CC0044.
This is essentially a refactoring so we will use a Hidden diagnostic.
@julianosaless is working on it.
When the method has more than three parameters , suggesting a new class.
Before
After:
Category is
Style.Diagnostic id is
CC0044.This is essentially a refactoring so we will use a
Hiddendiagnostic.@julianosaless is working on it.