I have a quick question about how to condense two lines into one.

The following code works:

bool pass = false;
MyFunction(ref pass);

I would like to turn it into the following:

MyFunction(ref new bool(false))

But that doesn't work in the compiler. Is there a correct syntax for this?