So something like this
public void MyMethod(object parameter)
//....
BuildSomething(parameter);
BuildLayers(parameter);
BuildOtherStuff(parameter);
}
public void BuildSomething(object parameter)
{
//...
parameter.SomeProperty = "sadsd";
//...
}
If this is an anti pattern, what is it called?
The problem (possibly) is that you are implicitly changing parameter and using the changed value.
I just want to know what is this anti-pattern know as
Thanks