I am passing a ref var to a method, and within the method I have a local method I'd like to ref the var that I passed to the initial method. Example below
private void SomeMethod(ref var refdVar, var someThing)
{
//do something
//then call the method below
LocalMethod(refdVar);
void LocalMethod(ref var refdVar)
{
refdVar = someThing;
}
}
Is this possible to do, if not, what are the options (I don't want to globally change the var, just because I find it cleaner by changing ref)?