In C# 7 you can declare an out variable right at the point of usage:
public void Get(){GetData(out int x);//code}