What about in a situation like this?
private bool TestMethod(myFirstClass oFirstClass, mySecondClass
oSecondClass, myThirdClass oThirdClass)
{
...code here
}
In this case, I'm not concerned with whether or not they set the value
of those objects to null inside this method. I do want them to have
the ability to modify properties of the three classes within them
(which they can regardless if they pass the parameters with the 'ref'
keyword or not).
What I am concerned with is that I may call this method many, many
times under different threads. From what I understand, that would mean
that each time this method is called a new instance of each class is
created of the variables since they are not passed with the 'ref'
keyword. From a memory point of view, how bad is that?