If I have a method that has a params
parameter, can it be passed by reference and updated every time a yield is called.
Something like this:
public static void GetRowsIter(ref params valuesToUpdate)
{
foreach(row in rows)
{
foreach(param in valuesToUpdate
{
GetValueForParam(param)
}
yield;
}
}
Is that legal? (I am away from my compiler or I would just try it out.)