I have a method which besides some other actions also modify one of the arguments.
For example:
public void DoSomeStuffAndModifyList(List<int> list)
{
...
list.Add(newElement);
}
It looks for me that the name of the method is not enough for pointing on this. May be the whole approach is wrong or there could be ref or out used?
Use a descriptive name for your method / arguments