Why does UdpClient.Receive require a ref parameter?

Posted by Martinho Fernandes on Stack Overflow See other posts from Stack Overflow or by Martinho Fernandes
Published on 2010-05-18T18:31:54Z Indexed on 2010/05/18 18:40 UTC
Read the original article Hit count: 283

Filed under:
|
|

Why is the parameter on UpdClient.Receive a ref parameter, instead of simply out?

According to the MSDN page, the parameter is filled with the address that the datagram was sent from. However it doesn't specify what kind of input it is used for, only output.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about sockets