I think it is more clear that if I pass reference type parameter to the method, that will be changed inside method to add ref keyword like this
void Foo(ref Boo boo)
{
boo.Value = 6;
}
, even this doesn't affect program execution any way and by default objects are passed by reference and I don't want to change reference inside void like this:
void Foo(ref Boo boo)
{
boo = new Boo();
}
because I think that with ref it is clear from method signature that I will change Boo inside instead of just reading it. Do you agree? What do you think about this?