out
parameters are expected to be passed into method as uninitialized
references and initialized
before leaving the function. Given that, in your code you are trying to compare an uninitialized variable, thats why you get compilation error.
Could you try with ref
?