credo tu debba metterla come out..

codice:
long dox(ref int i, out Int64 res);