The issue you’re having is “out” is a reserved word and should not be used as a variable. The out and ref keywords are reserved words that allow you to modify referenced objects and can enforce whether an object must not be null.
tl;dr: dont’ use keywords as variable names in code.