Client passing structs by Ref to the Server

Hi all, I am currently in the middle of developing an application that uses .NET remoting to allow client and server communication. The server is providing access to a Facade for the business logic and uses at the moment only structs as data transfer objects to allow data to be transferred between the client and the server.

The question is, when using the ref modifier on paramaters on the server, does this mean that when the server sets a property on the struct, the information is immediatly updated on the client or does the update occur after the method has completed. I think it is the latter but I need to make sure that this method will not inadvertantly cause network traffic.

Thanks in advance.


Answer this question

Client passing structs by Ref to the Server

  • James Knowles

    The update occurs after the method is completed.

    -Gagan


  • Client passing structs by Ref to the Server