code_junkie

Modifications of arrays passed by reference (C#)

Nov 12th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public int RecvByteDataFromPrinter(ref byte[] byteData)
  2. {
  3. byte[] recvdata = new byte[1024];
  4.  
  5. ///...fills recvdata array...
  6.  
  7. byteData = recvdata;
  8. return SUCCESS;
  9. }
Add Comment
Please, Sign In to add comment