I think this is actually C# code, I found this explaining the ref keyword
https://stackoverflow.com/questions/1167342/are-ref-and-out-in-c-sharp-the-same-a-pointers-in-c