Well you could do something like this...
Code:
public void someFunction(ref Object someObject)
{
'some code.
}
And when you are passing a variable to the function you should preceed it with the 'ref' keyword aswell. You might like to check out the 'out' keyword too.
Hope it helps
Jacob.